Merge pull request #130 from ilan-schemoul/fix-touch-atk

fix: touch screen should always open menu when touch screen
This commit is contained in:
evanpelle
2025-03-03 20:06:04 -08:00
committed by GitHub
+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) {