Skip to content
Permalink
Browse files

jquery.simulate fix for 2 pixels IE bug from mousecords

  • Loading branch information
eduardolundgren committed Jun 5, 2008
1 parent 6b36d59 commit ecca74b11ff68574697b5dca5519bae453d65dd6
Showing with 3 additions and 0 deletions.
  1. +3 −0 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;

0 comments on commit ecca74b

Please sign in to comment.
You can’t perform that action at this time.