mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:50:43 +00:00
fix but where touch input breaks on mobile (I think)
This commit is contained in:
@@ -91,7 +91,7 @@ export class InputHandler {
|
||||
return
|
||||
}
|
||||
this.pointerDown = false
|
||||
this.pointers.delete(event.pointerId);
|
||||
this.pointers.clear()
|
||||
|
||||
const dist = Math.abs(event.x - this.lastPointerDownX) + Math.abs(event.y - this.lastPointerDownY);
|
||||
if (dist < 10) {
|
||||
|
||||
Reference in New Issue
Block a user