diff --git a/src/composables/useMapPointerDrag.ts b/src/composables/useMapPointerDrag.ts index 99c2b74..586d32d 100644 --- a/src/composables/useMapPointerDrag.ts +++ b/src/composables/useMapPointerDrag.ts @@ -24,9 +24,9 @@ export type PointerDragState = { */ export function toggleCursor(cursor: string | null): void { if (cursor === null) - document.documentElement.attributeStyleMap.delete("cursor") + document.documentElement.style.cursor = "" else - document.documentElement.attributeStyleMap.set("cursor", cursor) + document.documentElement.style.cursor = cursor } /**