mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
jquery.simulate fix for 2 pixels IE bug from mousecords
This commit is contained in:
parent
6b36d59900
commit
ecca74b11f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user