Skip to content

Commit

Permalink
Prevent middle-click from moving to next frame in chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume-Savaton-ESEO committed Jul 5, 2011
1 parent 3868932 commit 0feb608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions player/actions.js
Expand Up @@ -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();
Expand Down

0 comments on commit 0feb608

Please sign in to comment.