fat / zoom.js

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

The cursor bug #19

Closed nroman closed 9 years ago

nroman commented 9 years ago

If I don't move cursor and just click twice on the image the cursor would be with wrong state. Like '+' would be '+' always whatever I do - zoom in or out. The cursor is not changing the state until you do not change the position of it/

hollton commented 9 years ago

I don't have the situation you said.But sometimes it would delay 2 or 3 seconds to change the cursor's state.But I think It doesn't matter.

fat commented 9 years ago

yeah this is a browser bug – not much we can do on our end – same thing on medium.com

fat commented 9 years ago

if you happen to come up with something, please open a pr, thanks!

nielthiart commented 9 years ago

On Chrome v42 you can force scheduleCursorUpdate by changing the cursor style of an element's ancestors. See http://stackoverflow.com/a/30176890/121889 for a working demo.