Skip to content

Commit 44594dd

Browse files
committed
Mouse Events: add button -1 which signifies no button pressed.
1 parent dd3c930 commit 44594dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.simulate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ $.extend( $.simulate.prototype, {
144144
0: 1,
145145
1: 4,
146146
2: 2
147-
}[ event.button ] || event.button;
147+
}[ event.button ] || ( event.button === -1 ? 0 : event.button );
148148
}
149149

150150
return event;

0 commit comments

Comments
 (0)