Created
July 12, 2014 02:50
-
-
Save sinfere/21cb90a774006a06dd97 to your computer and use it in GitHub Desktop.
jQuery Firefox offsetX offsetY fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function (e) | |
{ | |
if (!e.offsetX) { | |
// FireFox Fix | |
e.offsetX = e.pageX - $(e.currentTarget).offset().left; | |
e.offsetY = e.pageY - $(e.currentTarget).offset().top; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment