From 4c848d8d7c95aaac728e6f9826eb04f55fce961d Mon Sep 17 00:00:00 2001 From: Andreas Stassivik Date: Mon, 25 Nov 2024 02:21:40 -0800 Subject: [PATCH] `preventEventDefault` implementation --- src/dom/event/prevent-default.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/dom/event/prevent-default.ts diff --git a/src/dom/event/prevent-default.ts b/src/dom/event/prevent-default.ts new file mode 100644 index 0000000..d7a0a55 --- /dev/null +++ b/src/dom/event/prevent-default.ts @@ -0,0 +1,6 @@ +import { DomEvent } from 'leaflet' + +import { type LeafletDomEvent } from '@stassi/leaf' + +export const preventEventDefault: (event: Event) => LeafletDomEvent = + DomEvent.preventDefault