Permalink
Browse files

Prevent middle-click from moving to next frame in chromium

  • Loading branch information...
1 parent 3868932 commit 0feb608122c79f616d22dba12396a415a4e76ec4 @gsavaton gsavaton committed Jul 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 player/actions.js
View
@@ -120,15 +120,15 @@ var sozi = sozi || {};
*
* Left-click moves the presentation to the next frame.
*
- * No "click" event is generated for the middle button.
+ * No "click" event is generated for the middle button in Firefox.
* See "onMouseDown" for middle click handling.
*
* Dragging the mouse produces a "click" event when the button is released.
* If flag "dragged" was set by "onMouseMove", then the click event is the result
* of a drag action.
*/
function onClick(evt) {
- if (!dragged) {
+ if (!dragged && evt.button !== TOC_BUTTON) {
player.moveToNext();
}
evt.stopPropagation();

0 comments on commit 0feb608

Please sign in to comment.