Skip to content

Commit

Permalink
Update easyzoom.js
Browse files Browse the repository at this point in the history
Fixed the issue with image not showing up when mouse enters from bottom on images with odd sizes.
  • Loading branch information
zarneckin committed Aug 12, 2014
1 parent 3dadcc2 commit 2e88a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/easyzoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
var xl = pl * rw;

// Close if outside
if (xl < 0 || xt < 0 || xl > dw || xt > dh) {
if (xl < 0 || xt < 0 || xl > dw || Math.floor(xt) > dh) {
this.hide();
}
else {
Expand Down

0 comments on commit 2e88a1d

Please sign in to comment.