Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Doan committed Feb 18, 2016
1 parent 9e90658 commit c37a0fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dist/js/jquery.magnify.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery Magnify Plugin v1.3.3 by Tom Doan (http://thdoan.github.io/magnify/)
* jQuery Magnify Plugin v1.4.0 by Tom Doan (http://thdoan.github.io/magnify/)
* Based on http://thecodeplayer.com/walkthrough/magnifying-glass-for-images-using-jquery-and-css3
*
* jQuery Magnify by Tom Doan is licensed under the MIT License.
Expand Down Expand Up @@ -73,12 +73,12 @@
// Handle mouse movements
$container.on('mousemove touchmove', function(e) {
e.preventDefault();
// x/y coordinates of the mouse pointer
// x/y coordinates of the mouse pointer or touch point
// This is the position of .magnify relative to the document.
var oMagnifyOffset = $container.offset(),
/* We deduct the positions of .magnify from the mouse positions
relative to the document to get the mouse positions relative
to the container (.magnify). */
/* We deduct the positions of .magnify from the mouse or touch
positions relative to the document to get the mouse or touch
positions relative to the container (.magnify). */
nX = (e.pageX || e.originalEvent.touches[0].pageX) - oMagnifyOffset.left,
nY = (e.pageY || e.originalEvent.touches[0].pageY) - oMagnifyOffset.top;
// Toggle magnifying lens
Expand Down Expand Up @@ -153,4 +153,4 @@
});

};
}(jQuery));
}(jQuery));

0 comments on commit c37a0fe

Please sign in to comment.