Skip to content
Permalink
Browse files
Clean up in jQuery.event.fix (#1171)
  • Loading branch information
brandonaaron committed May 11, 2007
1 parent c76f6cd commit f5a2db89fddf65f753b50ff7e77eab47db3b1f23
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/event/event.js
@@ -188,9 +188,9 @@ jQuery.event = {

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

// check if target is a textnode (safari)

0 comments on commit f5a2db8

Please sign in to comment.