jackmoore / zoom

jQuery plugin for zooming images on mouseover.
http://www.jacklmoore.com/zoom/
MIT License
1.54k stars 460 forks source link

Touch to zoom on mobiles #62

Closed avenicus closed 8 years ago

avenicus commented 9 years ago

The zoom works on mobiles and touch event, although there is one slight issue ( minor feature request? ;) which I feel would make it more user friendly. The problem is that the zoom stays "zoomed" even after I've finished touching the mobile. It would be much nicer if the image had zoomed back out to the original state, so that it can be zoomed again easily, while currently it requires two touches to zoom again.

DrLulz commented 9 years ago

Did you ever find a solution for this?

NHuffmanSWX commented 9 years ago

I'm experiencing this, too, on Android 5. Using Chrome. As well as iPhone. Any update on this?

NHuffmanSWX commented 9 years ago

Version 1.7.14 but keeping all the top, left, offset.top, offset.left code in $.zoom from 1.7.13 fixes the problem in Android. Still having issues on iPhone.

avenicus commented 8 years ago

Version 1.7.15 confirmed fixed & working as expected. Thank you!

pirco commented 7 years ago

on that note... a two-finger touch to enable zoom on touch devices would be perfect. google maps implemented that recently.