New issue
Advanced search Search tips

Issue 721341 link

Starred by 16 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug

Blocked on:
issue 333623



Sign in to add a comment

Mouse move event fires on mouse down

Reported by mralexla...@gmail.com, May 11 2017

Issue description

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

Steps to reproduce the problem:
1. Mouse Down, check client.x and client.y position of last mouse move. They will equal the new mouse down and the fired mouse move
2. 
3. 

What is the expected behavior?
The mouse move event will not fire on a mouse down

What went wrong?
The mouse move event fires after a mouse down in Windows.

Did this work before? N/A 

Does this work in other browsers? Yes

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

This fiddle https://jsfiddle.net/alallier/khthynrr/2/ also demonstrates the problem. Possible related to https://bugs.chromium.org/p/chromium/issues/detail?id=161464#c65. This bug was opened on request of comments in that bug.
 
mouseDownFiresMouseMove.zip
603 bytes Download
Components: Blink>Input
Labels: Hotlist-Input-Dev
Labels: Needs-Triage-M58 Needs-Bisect
Labels: -Pri-2 Pri-3
Owner: dtapu...@chromium.org
Status: Assigned (was: Unconfirmed)
Labels: -Needs-Bisect
As per issue description and based on related issue(161464) removing the Needs-Bisect label.If it is required please add the "Needs-Bisect" label again.

Thank You!
Labels: -Pri-3 -Via-Wizard-API -Needs-Triage-M58 M-60 M-61 M-59 M-58 Pri-1
It's been two months now.

Can confirm issue still exists in both 59.0.3071.115 and Version 61.0.3152.0 (Canary), both 64-bit.

Fixing this bug is critical for proper functioning of certain Javascript code.
Blockedon: 333623
Labels: -Pri-1 -M-58 -M-59 -M-60 -M-61 Pri-3
Decreasing priority back to P3. This is what the native OS is delivering us I believe and certainly can match the spec. We will send a mouse move only if it differs from the last mouse move event.

We believe this event you are seeing is a synthetic event generated from a layout that is occurring we are working at removing these. 
Continue with  Issue 161464 , we encountered this issue too. The attached is a video to show the issue (sorry we are using SCREEN2EXE, so the video format is *.exe). From the video you can see if we open in a new tab or reopen it, the issue won't happen.

I also attached our test html file. It is very simple.

This issue is not easy to recreate it as randomly. So, you might need to try more machines. Something might be helpful to recreate it: 
Looks like the chrome 55 is very easy to recreate it. But we can also recreate it in latest chrome 63.0.3239.108 (Official Build) (64-bit) sometimes. If I open chrome with incognito mode, there is a big change to recreate it in first time. 

Our OS is window 10 x64 enterprise

Thanks for your help, it is critical for some library like openlayers.
mouseevent.exe
725 KB Download
eventsCapture.html
649 bytes View Download

Comment 8 Deleted

https://jsfiddle.net/49r1zsn3/

Here is a simple jsfiddle that shows the problem.
Hold M1/M2 down and you will see the event firing even though there is no change in cursor position.

see console for output.
This reproduces sporadically in Chrome 66.0.3359.181 on macOS 10.13.4 as well. Here's a test case; clicking sometimes prints "spurious move event":

https://jsfiddle.net/tvpfkjrv/1/
Owner: nzolghadr@chromium.org

Comment 12 by rmp...@gmail.com, Jun 21 2018

I've found this bug occurs much more often if there are others tags open in the current Chrome window. Using the jsfiddle above, drag the tab into it's own window and the bug will no longer occur, snap it back with other tabs and the bug reappears.
Also found this issue is somewhat related to other tabs being open. Chrome 67.0.3396.99 on Windows 10 Enterprise 10.0.16299
Yes - this is still an issue (Chrome 69). See https://codepen.io/MSCAU/pen/mzOBpX.

I look forward to a fix.

Comment 15 by t...@chr.gd, Oct 25

This bug has caused problems in our lab. Multiple user reported issues I can trace to this bug.  I am now working around this issue by keeping track of x and y on mousedown and checking the values on mouseup. 
It's also visible in the last demo: https://codepen.io/MSCAU/pen/mzOBpX with below steps:
1. click and hold the button,
2. move mouse while holding,
3. release mouse and do not move it,
4. additional mousemove event fires after click, but zero movement

Win 10 / Chrome 70
Win 10 / Chome 71
Still reproduced on
http://jsfiddle.net/yzyFC/1/
Can't reproduce on lubuntu, It seems to be Windows problem indeed

Sign in to add a comment