Skip to content
Permalink
Browse files
Fix for #1322
  • Loading branch information
brandonaaron committed Jun 29, 2007
1 parent 2e0c87c commit e290083c35654f6ef300970d55d680d24c35782b
Showing 1 changed file with 3 additions and 3 deletions.
@@ -226,9 +226,9 @@ jQuery.event = {

// Calculate pageX/Y if missing and clientX/Y available
if ( event.pageX == null && event.clientX != null ) {
var e = document.documentElement || document.body;
event.pageX = event.clientX + e.scrollLeft;
event.pageY = event.clientY + e.scrollTop;
var e = document.documentElement, b = document.body;
event.pageX = event.clientX + (e && e.scrollLeft || b && b.scrollLeft);
event.pageY = event.clientY + (e && e.scrollTop || b && b.scrollTop);
}

// Add which for key events

0 comments on commit e290083

Please sign in to comment.