mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:30:43 +00:00
fix: touch screen should always open menu when touch screen
Previous patch (to choos left click actions) by mistake made touchscreen by default attack with touch instead of open menu
This commit is contained in:
@@ -290,7 +290,9 @@ export class InputHandler {
|
||||
Math.abs(event.y - this.lastPointerDownY);
|
||||
if (dist < 10) {
|
||||
if (event.pointerType == "touch") {
|
||||
this.eventBus.emit(new ContextMenuEvent(event.clientX, event.clientY));
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.userSettings.leftClickOpensMenu() || event.shiftKey) {
|
||||
|
||||
Reference in New Issue
Block a user