Skip to content

Commit f95cd64

Browse files
committed
Fix to force cursor update after animation completes
Hopefully this fixes #19 This fix changes the body's cursor style during animation, which forces the zoomed image's cursor style to apply. Chromium has issues updating the cursor while the cursor is idle. See [Chromium Issue 26723: Mouse cursor doesn't change when mouse-idling][1]. [1]: https://code.google.com/p/chromium/issues/detail?id=26723
1 parent 83db224 commit f95cd64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

css/zoom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ img.zoom-img {
3535
filter: "alpha(opacity=100)";
3636
opacity: 1;
3737
}
38+
.zoom-overlay-open {
39+
cursor: pointer;
40+
cursor: -webkit-zoom-out;
41+
cursor: -moz-zoom-out;
42+
}
43+
.zoom-overlay-transitioning {
44+
cursor: default;
45+
}

0 commit comments

Comments
 (0)