Skip to content

Commit

Permalink
Merge pull request #69 from benjamine/feature/zoom-lens-flicker
Browse files Browse the repository at this point in the history
round lens position to avoid border flickering
  • Loading branch information
elevateweb committed Jun 29, 2015
2 parents 50a0d8b + 00f3f2c commit 119b1e6
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 @@ -672,8 +672,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 119b1e6

Please sign in to comment.