hammer.js swipe disabling native pinch to zoom
问题 Is it possible to use the native "pinch to zoom" on touch devices while using hammerjs to recognize swipe gestures? I want users to be able to zoom in on images in the gallery (as they can natively when hammer event handler is not bound) and swiping to display the previous or next image. hammertime.on('swipe', function(ev) { if (ev.direction === 2) { nextImage(); } else if (ev.direction === 4) { prevImage(); } }); 回答1: Solution was to use touchAction = 'auto' var hammertime = new Hammer