Skip to content

Commit

Permalink
Fixed issue timmywil#303
Browse files Browse the repository at this point in the history
  • Loading branch information
maartendemandt committed Sep 20, 2017
1 parent c00283c commit 082cebe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/jquery.panzoom.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license jquery.panzoom.js v3.2.2
* Updated: Wed Jun 21 2017
* Updated: Wed Sep 20 2017
* Add pan and zoom functionality to any element
* Copyright (c) timmy willison
* Released under the MIT license
Expand Down Expand Up @@ -970,7 +970,7 @@
if (!options.disablePan || !options.disableZoom) {
events[ str_start ] = function(e) {
var touches;
if (e.type === 'touchstart' ?
if (/touchstart|pointerdown/.test(e.type) ?
// Touch
(touches = e.touches || e.originalEvent.touches) &&
((touches.length === 1 && !options.disablePan) || touches.length === 2) :
Expand Down

0 comments on commit 082cebe

Please sign in to comment.