Commit dae9f627 authored by olau@iola.dk's avatar olau@iola.dk

Updated mouse position expression to the latest in jQuery 1.2.6

git-svn-id: https://flot.googlecode.com/svn/trunk@102 1e0a6537-2640-0410-bfb7-f154510ff394
parent dd8b499f
...@@ -1636,8 +1636,8 @@ ...@@ -1636,8 +1636,8 @@
var e = ev || window.event; var e = ev || window.event;
if (e.pageX == null && e.clientX != null) { if (e.pageX == null && e.clientX != null) {
var de = document.documentElement, b = document.body; var de = document.documentElement, b = document.body;
lastMousePos.pageX = e.clientX + (de && de.scrollLeft || b.scrollLeft || 0); lastMousePos.pageX = e.clientX + (de && de.scrollLeft || b.scrollLeft || 0) - (de.clientLeft || 0);
lastMousePos.pageY = e.clientY + (de && de.scrollTop || b.scrollTop || 0); lastMousePos.pageY = e.clientY + (de && de.scrollTop || b.scrollTop || 0) - (de.clientTop || 0);
} }
else { else {
lastMousePos.pageX = e.pageX; lastMousePos.pageX = e.pageX;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment