Shorter touch delay, delay on release

This commit is contained in:
Will Scullin 2023-06-11 15:52:34 -07:00
parent c8bc512655
commit 34fb98f27c
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD

View File

@ -41,7 +41,7 @@ export class MouseUI {
// Make sure the mouse down is processed in a different // Make sure the mouse down is processed in a different
// pass as the move, so that a simple tap isn't treated like // pass as the move, so that a simple tap isn't treated like
// a drag. // a drag.
setTimeout(() => this.mouse.setMouseDown(true), 100); setTimeout(() => this.mouse.setMouseDown(true), 20);
} }
); );
@ -49,7 +49,7 @@ export class MouseUI {
'touchend', 'touchend',
(event: TouchEventWithTarget) => { (event: TouchEventWithTarget) => {
updateTouchXY(event); updateTouchXY(event);
this.mouse.setMouseDown(false); setTimeout(() => this.mouse.setMouseDown(false), 20);
} }
); );