Skip to content

Commit

Permalink
Mouse Events: add button -1 which signifies no button pressed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesherov committed Aug 20, 2014
1 parent dd3c930 commit 44594dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.simulate.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ $.extend( $.simulate.prototype, {
0: 1,
1: 4,
2: 2
}[ event.button ] || event.button;
}[ event.button ] || ( event.button === -1 ? 0 : event.button );
}

return event;
Expand Down

0 comments on commit 44594dd

Please sign in to comment.