We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e28be commit a57a9c3Copy full SHA for a57a9c3
jquery.simulate.js
@@ -103,7 +103,9 @@ $.extend( $.simulate.prototype, {
103
} else if ( document.createEventObject ) {
104
event = document.createEventObject();
105
$.extend( event, options );
106
- // TODO: what is this mapping for?
+ // standards event.button uses constants defined here: http://msdn.microsoft.com/en-us/library/ie/ff974877(v=vs.85).aspx
107
+ // old IE event.button uses constants defined here: http://msdn.microsoft.com/en-us/library/ie/ms533544(v=vs.85).aspx
108
+ // so we actually need to map the standard back to oldIE
109
event.button = { 0:1, 1:4, 2:2 }[ event.button ] || event.button;
110
}
111
0 commit comments