Skip to content
Permalink
Browse files
Fix for #1153
  • Loading branch information
brandonaaron committed Sep 27, 2007
1 parent 6e8a8c5 commit ee2efbe1e39d32d4ec3a1598f66044e59474c708
Showing 1 changed file with 2 additions and 2 deletions.
@@ -266,8 +266,8 @@ jQuery.event = {
// Calculate pageX/Y if missing and clientX/Y available
if ( event.pageX == null && event.clientX != null ) {
var e = document.documentElement, b = document.body;
event.pageX = event.clientX + (e && e.scrollLeft || b.scrollLeft || 0);
event.pageY = event.clientY + (e && e.scrollTop || b.scrollTop || 0);
event.pageX = event.clientX + (e && e.scrollLeft || b && b.scrollLeft || 0);
event.pageY = event.clientY + (e && e.scrollTop || b && b.scrollTop || 0);
}

// Add which for key events

0 comments on commit ee2efbe

Please sign in to comment.