Skip to content
Permalink
Browse files
Fix for #1402
  • Loading branch information
brandonaaron committed Jul 20, 2007
1 parent a40f141 commit f267cfa
Showing 1 changed file with 2 additions and 2 deletions.
@@ -227,8 +227,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);
event.pageY = event.clientY + (e && e.scrollTop || b.scrollTop);
event.pageX = event.clientX + (e && e.scrollLeft || b.scrollLeft || 0);
event.pageY = event.clientY + (e && e.scrollTop || b.scrollTop || 0);
}

// Add which for key events

0 comments on commit f267cfa

Please sign in to comment.