Skip to content

Commit

Permalink
Fix to force cursor update after animation completes
Browse files Browse the repository at this point in the history
Hopefully this fixes fat#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
  • Loading branch information
nielthiart committed May 11, 2015
1 parent 83db224 commit f95cd64
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions css/zoom.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ img.zoom-img {
filter: "alpha(opacity=100)";
opacity: 1;
}
.zoom-overlay-open {
cursor: pointer;
cursor: -webkit-zoom-out;
cursor: -moz-zoom-out;
}
.zoom-overlay-transitioning {
cursor: default;
}

0 comments on commit f95cd64

Please sign in to comment.