Skip to content

Commit

Permalink
increase handlegesture timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Nov 9, 2024
1 parent c9de8a6 commit 7bac94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -2110,11 +2110,11 @@ function getSpecies(target) {
function handleGesture(e) {
const moveDirection = e.deltaX || e.deltaY; // If deltaX is 0, use deltaY
const key = moveDirection > 0 ? 'PageDown' : 'PageUp';
console.log(`scrolling x: ${e.deltaX} y: ${e.deltaY}`)
DEBUG && console.log(`scrolling x: ${e.deltaX} y: ${e.deltaY}`)
waitForFinalEvent(() => {
GLOBAL_ACTIONS[key](e);
trackEvent(config.UUID, 'Swipe', key, '' );
}, 100, 'swipe');
}, 200, 'swipe');
}


Expand Down

0 comments on commit 7bac94b

Please sign in to comment.