mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-27 05:34:36 +00:00
hide build menu when click on map on mobile
This commit is contained in:
@@ -140,6 +140,7 @@ export class InputHandler {
|
||||
if (dist < 10) {
|
||||
if (event.pointerType == "touch") {
|
||||
event.preventDefault()
|
||||
console.log('firing context menu event')
|
||||
this.eventBus.emit(new ContextMenuEvent(event.clientX, event.clientY))
|
||||
} else {
|
||||
this.eventBus.emit(new MouseUpEvent(event.x, event.y))
|
||||
|
||||
Reference in New Issue
Block a user