Added mouse position info link in comments

This commit is contained in:
peteruithoven 2014-01-10 17:23:58 +01:00
parent b2fd2a2f77
commit d156dc9902
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@
_x = e.offsetX;
_y = e.offsetY;
} else {
// http://www.quirksmode.org/mobile/tableViewport_desktop.html#t11
var offset = $(element).offset();
_x = e.pageX - offset.left;
_y = e.pageY - offset.top;