diff --git a/src/composables/usePointerHandlers.ts b/src/composables/usePointerHandlers.ts index 1edda26..3e67772 100644 --- a/src/composables/usePointerHandlers.ts +++ b/src/composables/usePointerHandlers.ts @@ -11,7 +11,7 @@ export function usePointerHandlers(scene: Phaser.Scene, layer: Phaser.Tilemaps.T const gameHandlers = useGamePointerHandlers(scene, layer, waypoint, camera, isDragging) const zoneEditorHandlers = useZoneEditorPointerHandlers(scene, layer, waypoint, camera, isDragging) - let currentHandlers = computed(() => (zoneEditorStore.active ? zoneEditorHandlers : gameHandlers)) + const currentHandlers = computed(() => (zoneEditorStore.active ? zoneEditorHandlers : gameHandlers)) const setupPointerHandlers = () => { currentHandlers.value.setupPointerHandlers()