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:
ilan schemoul
2025-03-03 22:10:58 +01:00
parent 8803cc89b6
commit 0790c3d818
+2
View File
@@ -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) {