1
0
forked from noxious/client

Major refractor, cleaning and improvements.

This commit is contained in:
2024-08-24 03:07:48 +02:00
parent 6c44821ebb
commit bdc2ba35c9
33 changed files with 188 additions and 298 deletions

View File

@ -12,7 +12,7 @@ export function useCameraControls(scene: Phaser.Scene): any {
const MOVE_RESET_DELAY = 100
function onPointerDown(pointer: Phaser.Input.Pointer) {
if (pointer.event instanceof MouseEvent || pointer.event.altKey) {
if (pointer.event instanceof MouseEvent || pointer.event.shiftKey) {
pointerDownTimer = setTimeout(() => {
isDragging.value = true
gameStore.setMovingCamera(true)