Skip to content

Commit

Permalink
round lens position to avoid border flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
beneidel committed Aug 15, 2014
1 parent 29cafcd commit 00f3f2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.elevatezoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,8 @@ if ( typeof Object.create !== 'function' ) {
if(self.options.showLens) {
// self.showHideLens("show");
//set background position of lens
self.lensLeftPos = String(self.mouseLeft - self.zoomLens.width() / 2);
self.lensTopPos = String(self.mouseTop - self.zoomLens.height() / 2);
self.lensLeftPos = String(Math.floor(self.mouseLeft - self.zoomLens.width() / 2));
self.lensTopPos = String(Math.floor(self.mouseTop - self.zoomLens.height() / 2));


}
Expand Down

0 comments on commit 00f3f2c

Please sign in to comment.