fat / zoom.js

Medium's Image Zoom for jQuery
https://fat.github.io/zoom.js
MIT License
4.04k stars 331 forks source link

While overlay is shown, still able to zoom other images in viewport. Strange behavior follows. #10

Closed alexjacque closed 9 years ago

alexjacque commented 9 years ago

If there are multiple images with the zoom ability applied within the viewport, they can continue to be clicked and zoomed while the overlay is open for another image already if they happened to be below the overlay but not beneath the zoomed image (i.e. the white overlay doesn't prevent clicks from being registered with images below).

If this happens, the previous zoomed image does somewhat return to it's position, but it does not scale back down properly, and if you click it again the scale is compounded.

Successfully duplicated the problem in Safari 8.0.3, Chrome 42.0.2311.135, and Firefox 37.0.2.

Click, zoom, scale problem.

tjisousa commented 9 years ago

@fat @alexjacque Hi guys, pushed a fix for this little issue. :+1:

fat commented 9 years ago

should be fixed, thanks