Skip to content

Conversation

@noahpin
Copy link

@noahpin noahpin commented Nov 8, 2021

beforeTouchDown functions similarly to beforeMouseDown, in that it allows for disabling or filtering zooming/panning via touch. Ex:

panzoom(element, {
  beforeTouchDown: function(e) {
    // allow touch-down panning only if there is more than one touch active
    var shouldIgnore = !(e.touches.length > 1);
    return shouldIgnore;
  }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant