Search code examples
jqueryipadzoominggestures

Allowing Pinch to Zoom with jQuery.Wipetouch


I'm using the jQuery.Wipetouch plugin to allow swiping gestures to navigate a slideshow.

However, the iPad's native pinch-to-zoom functionality is now broken, because any swiping gestures (apparently including pinch/zoom) are being captured by the bound element.

Is there any way I can enable pinch-to-zoom while maintaining my new swipe gestures? Is there maybe a multitouch event I can listen for to temporarily disable swipe bindings?


Solution

  • I found a solution to my problem. The plugin has a property called 'preventDefault' which defaults to TRUE. This setting disables default event functionality such as pinch-to-zoom.

    Setting preventDefault to false fixes the issues with jQuery.Wipetouch not recognizing my pinch-to-zoom gestures.