From: Eduardo Lundgren Date: Thu, 5 Jun 2008 00:32:40 +0000 (+0000) Subject: jquery.simulate fix for 2 pixels IE bug from mousecords X-Git-Tag: 1.5.1~204 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ecca74b11ff68574697b5dca5519bae453d65dd6;p=jquery-ui.git jquery.simulate fix for 2 pixels IE bug from mousecords --- 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;