New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 883351 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 13
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

dblclick event does not fire for middle or right mouse buttons

Reported by a...@scirra.com, Sep 12

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36

Steps to reproduce the problem:
1. Open the attached HTML file and open the console
2. Try double-clicking in the window with left, middle and right mouse buttons
3. Observe console logs

What is the expected behavior?
Double-click events to be fired for middle and right mouse buttons

What went wrong?
Double-click events are only fired for the left mouse button (button 0).

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 69.0.3497.92  Channel: stable
OS Version: 10.0
Flash Version: 

Firefox fires dblclick events for all mouse buttons, but Edge appears to have the same behavior as Chrome (left button only).
 
dblclick.html
485 bytes View Download
Chrome and Edge properly implement DOM specification, while Firefox is not.
Quoting https://www.w3.org/TR/uievents/#event-type-dblclick

    As with the click event, the dblclick event should only be fired for the primary pointer button.
    Secondary buttons MUST NOT fire dblclick events.
Labels: Needs-Triage-M69
Cc: nzolghadr@chromium.org
Status: WontFix (was: Unconfirmed)
Based on comment #1, Chrome works as expectation.
Cc: o...@pettay.fi
FYI Olli, as it seems Firefox is still firing dblclick for non-primary buttons.

Sign in to add a comment