forked from noxious/client
Minor improvements
This commit is contained in:
@ -6,7 +6,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(Date.now())
|
||||
const dragTimeout = 100 // 100ms timeout for dragging, to prevent accidental clicks
|
||||
const dragTimeout = 250 // 250ms timeout for dragging, to prevent accidental clicks
|
||||
|
||||
function updateWaypoint(pointer: Phaser.Input.Pointer) {
|
||||
const { x: px, y: py } = camera.getWorldPoint(pointer.x, pointer.y)
|
||||
|
Reference in New Issue
Block a user