Skip to content

Commit

Permalink
Fix issue with Event#isMiddleClick and #isRightClick on Safari and Ch…
Browse files Browse the repository at this point in the history
…rome. [#731 state:resolved] (Arthur Schreiber)
  • Loading branch information
savetheclocktower committed Oct 17, 2010
1 parent 8b2ed97 commit f6e77f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,3 +1,5 @@
* Fix issue with Event#isMiddleClick and #isRightClick on Safari and Chrome. [#731 state:resolved] (Arthur Schreiber)

* Fix issue where an Ajax request in IE sometimes returns 1223 instead of 204 as the status code. [#129 state:resolved] (adevadeh, gordyt, Andrew Dupont)

* Add Object.isDate. [#443 state:resolved] (Nesterenko Dmitry, kangax, Samuel Lebeau, Andrew Dupont)
Expand Down
3 changes: 2 additions & 1 deletion src/dom/event.js
Expand Up @@ -100,7 +100,8 @@
_isButton = function(event, code) {
switch (code) {
case 0: return event.which == 1 && !event.metaKey;
case 1: return event.which == 1 && event.metaKey;
case 1: return event.which == 2 || (event.which == 1 && event.metaKey);
case 2: return event.which == 3;
default: return false;
}
};
Expand Down

0 comments on commit f6e77f6

Please sign in to comment.