Skip to content

Commit

Permalink
Added the possibility to filter on touchmoved
Browse files Browse the repository at this point in the history
  • Loading branch information
ealjkl committed Apr 9, 2023
1 parent 95cd670 commit ff92df8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ export default function() {

function touchmoved(event, ...args) {
if (!this.__zooming) return;
if (!filter.apply(this, arguments)) return;
var g = gesture(this, args).event(event),
touches = event.changedTouches,
n = touches.length, i, t, p, l;
Expand Down

0 comments on commit ff92df8

Please sign in to comment.