Shorter touch delay, delay on release (#186)

This commit is contained in:
Will Scullin 2023-06-11 16:02:01 -07:00 committed by GitHub
parent c8bc512655
commit c52f03a7e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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);
} }
); );