New issue
Advanced search Search tips

Issue 709719 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Holding down mouse button on <select> immediately fires "mouseup" and "click"

Reported by dwaltri...@gmail.com, Apr 8 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1. Attach "mousedown", "mouseup", "click" handlers to <select> element
2. Hold down mouse button while pointer is over the <select>

What is the expected behavior?
Only the "mousedown" event should fire when the mouse button has been pressed, and NOT yet released.

What went wrong?
Immediately after the mouse button has been pressed, the "mouseup" and "click" events both fire, even though the mouse button has not yet been released.

Did this work before? N/A 

Does this work in other browsers? No
 Firefox has the correct behavior.

Safari has partially correct behavior. It correctly does NOT fire the "mouseup" and "click" before the mouse button has been released. However, if the cursor is moved away from the <select> element and then the mouse button is released, the "mouseup" and "click" event both fire on the <select> element, which is incorrect, as the the cursor is now over a different target element.

Chrome version: 56.0.2924.87  Channel: n/a
OS Version: OS X 10.11.6
Flash Version:
 
select-mouseevent-bug.html
805 bytes View Download

Comment 1 by tapted@chromium.org, Apr 11 2017

Components: Blink>Forms>Select
Labels: Needs-Milestone

Comment 3 by tkent@chromium.org, Apr 13 2017

Labels: -Needs-Milestone
Status: Available (was: Unconfirmed)

At least we should make Chrome/Mac behavior same as Chrome/Windows, which dispatches synthetic mouseup/click events targeting the SELECT when an OPTION is selected.

Cc: kkaluri@chromium.org
Labels: M-59
Able to reproduce the issue on Mac 10.12.4 with chrome #57.0.2987.133 , #59.0.3069.0 and also with earlier version #	35.0.1916.0. This is a non-regression issue .
Attaching a screen-cast for reference.

Note:
Issue is not reproducible  in Windows 10 and Ubuntu 14.04


Issue 709719.mp4
342 KB View Download

Comment 5 by tkent@chromium.org, Apr 13 2017

Labels: -M-59
Project Member

Comment 6 by sheriffbot@chromium.org, Apr 13 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 7 by tkent@chromium.org, Apr 16 2018

Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)

Sign in to add a comment