fat / zoom.js

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

Zoom out issue #55

Open teomaragakis opened 9 years ago

teomaragakis commented 9 years ago

I'm using a grid layout (with masonry, but I believe it's irrelevant) to display a gallery. Problem is that when you click out of the image, if underneath the cursor there's another image (even if you just see the white BG and not the image), zooms calls the new image instead of zooming out, which messes up the layout when I do finally click on nothing and unzoom.

Mind that I'm using the release.

teomaragakis commented 9 years ago

Found it. It's the "pointer-events: none" CSS rule for div.zoom-overlay.

isoriaizquierdo commented 9 years ago

@teomaragakis I have the same problem. What you mean with "pointer-events: none" solution. I have played removing it, changing the value, but no luck. Thanks.

teomaragakis commented 9 years ago

pointer-events: initial; should work.

heavybeard commented 8 years ago

Hi @teomaragakis, can you provide an example? I am curious. Thanks