aboutsummaryrefslogtreecommitdiffstats
path: root/ui/tests/jquery.simulate.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tests/jquery.simulate.js')
-rw-r--r--ui/tests/jquery.simulate.js3
1 files changed, 3 insertions, 0 deletions
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;