yyx990803 / zoomerang

drop in zoom anything

Home Page:http://yyx990803.github.io/zoomerang/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrapper blocking clicks

pketh opened this issue · comments

When I tried zoomerang I ran into an issue where the wrapper created in the bottom right was intercepting clicks.

I solved this by adding :

'pointer-events': 'none' 

to the setStyle(wrapper) function (around line 58).

Don't really know what caused the issue (it's not in the demo), but hopefully this helps someone.

followup question: This solution works fine in webkit, but the css rule seems to be ignored by firefox. Do you know why that might be? Reading through the code, I couldn't find anything.

I'm not sure if I understand your problem. The wrapper should block all mouse events when the item is zoomed in and that is the intended behavior. Are you running into situations when the wrapper is not properly removed when zoomed out?

Hey Evan,
to be clear, by 'wrapper' I mean the box in the bottom right that positions the image:.
screen shot 2014-01-13 at 11 17 21 am

when I click this box (the part that's not covered by the image) , it does not zoom out.

On your demo site, I did not observe this same behaviour (clicking where the box is still zooms out as expected).

Yes, this is indeed a bug - fixed in 0.1.6. Thanks for reporting!