Skip to content

Commit

Permalink
Fix issue #59
Browse files Browse the repository at this point in the history
  • Loading branch information
thdoan committed Jun 9, 2019
1 parent 5c15287 commit 4ca113b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "magnify",
"description": "A lightweight jQuery magnifying glass zoom plugin.",
"version": "2.3.2",
"version": "2.3.3",
"main": [
"dist/css/magnify.css",
"dist/js/jquery.magnify.js"
Expand Down
6 changes: 3 additions & 3 deletions dist/js/jquery.magnify.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery Magnify Plugin v2.3.2 by T. H. Doan (https://thdoan.github.io/magnify/)
* jQuery Magnify Plugin v2.3.3 by T. H. Doan (https://thdoan.github.io/magnify/)
* Based on http://thecodeplayer.com/walkthrough/magnifying-glass-for-images-using-jquery-and-css3
*
* jQuery Magnify by T. H. Doan is licensed under the MIT License.
Expand Down Expand Up @@ -51,6 +51,8 @@
nLensHeight,
nBoundX = 0,
nBoundY = 0,
nPosX, nPosY, // Absolute cursor position
nX, nY, // Relative cursor position
oContainerOffset, // Relative to document
oImageOffset, // Relative to container
// Get true offsets
Expand Down Expand Up @@ -177,8 +179,6 @@
'load': function() {
// [2] Got image dimensions OK.

var nPosX, nPosY, nX, nY;

// Fix overlap bug at the edges during magnification
$image.css('display', 'block');
// Create container div if necessary
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "magnify",
"version": "2.3.2",
"version": "2.3.3",
"description": "A lightweight jQuery magnifying glass zoom plugin.",
"keywords": [
"jquery-plugin",
Expand Down

0 comments on commit 4ca113b

Please sign in to comment.