Commit e290083c authored by Brandon Aaron's avatar Brandon Aaron

Fix for #1322

parent 2e0c87cf
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment