Skip to content

Commit

Permalink
Fix touch play
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Nov 28, 2023
1 parent 4f3d9a7 commit f351592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tools/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ export class Scroll {
touchstart = (event) => {
// long touch triggers the dblclick
// @ts-ignore
this.#touchTimerID = setTimeout(this.dblclick, 500);
// call mouse equivalent
this.mousedown(event);
this.#touchTimerID = setTimeout(() => {
this.dblclick(event);
}, 500);
};

/**
Expand Down

0 comments on commit f351592

Please sign in to comment.