Minor bug fix
This commit is contained in:
parent
494576b284
commit
c2ae271306
@ -5,7 +5,7 @@ import config from '@/config'
|
||||
|
||||
export function useGamePointerHandlers(scene: Phaser.Scene, layer: Phaser.Tilemaps.TilemapLayer, waypoint: Ref<{ visible: boolean; x: number; y: number }>, camera: Phaser.Cameras.Scene2D.Camera) {
|
||||
const gameStore = useGameStore()
|
||||
const lastDragTime = ref(0)
|
||||
const lastDragTime = ref(Date.now())
|
||||
const dragTimeout = 100 // 100ms timeout for dragging, to prevent accidental clicks
|
||||
|
||||
function updateWaypoint(pointer: Phaser.Input.Pointer) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user