From 4ca113b9516fb342b3ef62cef35dd7b41c3a5818 Mon Sep 17 00:00:00 2001 From: "T. H. Doan" Date: Sat, 8 Jun 2019 20:47:49 -0700 Subject: [PATCH] Fix issue #59 --- bower.json | 2 +- dist/js/jquery.magnify.js | 6 +++--- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bower.json b/bower.json index fe4ad72..c6b626e 100644 --- a/bower.json +++ b/bower.json @@ -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" diff --git a/dist/js/jquery.magnify.js b/dist/js/jquery.magnify.js index 363f38c..e3a4e8d 100644 --- a/dist/js/jquery.magnify.js +++ b/dist/js/jquery.magnify.js @@ -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. @@ -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 @@ -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 diff --git a/package.json b/package.json index 9e7d16a..1996121 100644 --- a/package.json +++ b/package.json @@ -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",