Skip to content

Commit

Permalink
Update pointer-pos.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cacheflowe committed Oct 10, 2024
1 parent 11df905 commit 4dfc772
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pointer-pos.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ class PointerPos {
this.startListener = this.pointerStart.bind(this);
this.moveListener = this.pointerMove.bind(this);
this.endListener = this.pointerEnd.bind(this);
document.addEventListener("mousedown", this.startListener);
document.addEventListener("mousemove", this.moveListener);
document.addEventListener("mouseup", this.endListener);
document.addEventListener("touchstart", this.startListener);
document.addEventListener("touchmove", this.moveListener);
document.addEventListener("touchend", this.endListener);
document.addEventListener("mousedown", this.startListener);
document.addEventListener("mousemove", this.moveListener);
document.addEventListener("mouseup", this.endListener);
}

removeTouchListeners() {
Expand Down

0 comments on commit 4dfc772

Please sign in to comment.