jquery.simulate fix for 2 pixels IE bug from mousecords

This commit is contained in:
Eduardo Lundgren 2008-06-05 00:32:40 +00:00
parent 6b36d59900
commit ecca74b11f

View File

@ -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;