Skip to content
Permalink
Browse files

Fix for #1402

  • Loading branch information
brandonaaron committed Jul 20, 2007
1 parent a40f141 commit f267cfaedf9f01ddf1f6f9c214ea07906c01a84a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/event/event.js
@@ -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.
You can’t perform that action at this time.