From ecca74b11ff68574697b5dca5519bae453d65dd6 Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Thu, 5 Jun 2008 00:32:40 +0000 Subject: [PATCH] jquery.simulate fix for 2 pixels IE bug from mousecords --- ui/tests/jquery.simulate.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/tests/jquery.simulate.js b/ui/tests/jquery.simulate.js index 0174e5dcf..8246521f6 100644 --- a/ui/tests/jquery.simulate.js +++ b/ui/tests/jquery.simulate.js @@ -72,6 +72,9 @@ $.extend($.simulate.prototype, { } else if (document.createEventObject) { evt = document.createEventObject(); $.extend(evt, e); + // fix for 2 pixels bug from mousecords + evt.pageX = options.x; evt.pageY = options.y; + evt.button = { 0:1, 1:4, 2:2 }[evt.button] || evt.button; } return evt; -- 2.39.5