Permalink
Browse files

fix for #2620

  • Loading branch information...
1 parent a4b8fed commit c6db93c37374410427b0b64d19c24659fbb32754 @brandonaaron brandonaaron committed May 1, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/event.js
View
@@ -351,8 +351,8 @@ jQuery.event = {
// Calculate pageX/Y if missing and clientX/Y available
if ( event.pageX == null && event.clientX != null ) {
var doc = document.documentElement, body = document.body;
- event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
- event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
+ event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
+ event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
}
// Add which for key events

0 comments on commit c6db93c

Please sign in to comment.