mouseup event not fired for button0 if button2 is clicked before release button0
Reported by
hayden.w...@verizonconnect.com,
Jun 15 2018
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 Steps to reproduce the problem: 1. Press and hold the left mouse button 2. Press and release the right mouse button 3. Release the left mouse button http://jsfiddle.net/ae53deov/8/ What is the expected behavior? mouseup events should be fired for both right and left mouse buttons What went wrong? Left mouse button's mouseup event is not fired Did this work before? N/A Chrome version: <Copy from: 'about:version'> Channel: stable OS Version: 10.0 Flash Version:
,
Jun 17 2018
,
Jun 18 2018
Reporter@ Thanks for the issue. Able to reproduce this issue on Windows 10 on the reported version 67.0.3396.87 and the latest Canary 69.0.3463.0 as per the original comment. Unable to reproduce the issue on Mac OS 10.13.5 as there is no mouse connected and on Ubuntu 14.04 on following the steps 1 to 3, no events are fired in the console. Attached is the screen shot for reference. This is a Non-Regression issue as this behavior is observed from M-60 chrome builds. Hence marking this as Untriaged for further updates from Dev. Thanks..
,
Jun 19 2018
,
Jun 19 2018
Right-button invokes a context menu, so the mouseup event goes to the menu's event loop. Looks like WAI. - I tried with left+middle button, works fine in that case. - Firefox is almost similar: the mouse event is sent to the page is the pointer is outside the context menu. hayden.white@: you didn't mention anything about the context menu. Please clarify if my explanation now makes sense.
,
Jun 19 2018
You're right, the context menu is invoked. Releasing the mouse button while the pointer is outside of the context menu should not send the event to the menu though, IMO. Firefox's behaviour is what I would expect.
,
Jun 19 2018
In Chrome, the menu is like a modal dialog: events don't get dispatched to the "background" page. Also note that even with the Firefox model, there could be unpaired mousedown/up when the mouse is dragged to the menu. This is WAI, we suggest listening to the "contextmenu" event to detect the scenario. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by hayden.w...@verizonconnect.com
, Jun 15 2018