mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Shorter touch delay, delay on release (#186)
This commit is contained in:
parent
c8bc512655
commit
c52f03a7e1
@ -41,7 +41,7 @@ export class MouseUI {
|
||||
// Make sure the mouse down is processed in a different
|
||||
// pass as the move, so that a simple tap isn't treated like
|
||||
// a drag.
|
||||
setTimeout(() => this.mouse.setMouseDown(true), 100);
|
||||
setTimeout(() => this.mouse.setMouseDown(true), 20);
|
||||
}
|
||||
);
|
||||
|
||||
@ -49,7 +49,7 @@ export class MouseUI {
|
||||
'touchend',
|
||||
(event: TouchEventWithTarget) => {
|
||||
updateTouchXY(event);
|
||||
this.mouse.setMouseDown(false);
|
||||
setTimeout(() => this.mouse.setMouseDown(false), 20);
|
||||
}
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user