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

Issue 793481 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 1
Type: Bug



Sign in to add a comment

[CRD iOS] App keeps sending mousedown events during drag

Project Member Reported by yuweih@chromium.org, Dec 8 2017

Issue description

What steps will reproduce the problem?
(1) Connect to a Windows host (e.g. Windows 10 Home v1607)
(2) Try to use the long-press gesture to draw a drag-select box

What is the expected result?

The drag-select box is drawn properly

What happens instead?

The starting point of the drag-select box is reset in every mouse movement.


Looks like the problem is in this line of code:
https://cs.chromium.org/chromium/src/remoting/client/gesture_interpreter.cc?sq=package:chromium&l=113

During drag mode we have the "left button pressed" information attached to each mouse movement event, and apparently Windows host interprets them as mousedown events and resets the drag starting point.
 
Cc: m...@verily.com
Project Member

Comment 2 by bugdroid1@chromium.org, Dec 9 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a2b5834286485964af1be2f95b9c3159a0fab34d

commit a2b5834286485964af1be2f95b9c3159a0fab34d
Author: Yuwei Huang <yuweih@chromium.org>
Date: Sat Dec 09 00:41:21 2017

[CRD iOS] Remove mouse button state from mousemove event in drag gesture

Previously we keep sending the "left button down" info with the
mousemove event to the host during a drag gesture, which is interpreted
as mousedown on Windows.

This CL fixes this issue by removing the button state from the mouse
event when it is a mousemove event in a drag gesture.

Bug:  793481 
Change-Id: Ifc2f9a4c0513df5f7f80223cae0c718b6f95ce1b
Reviewed-on: https://chromium-review.googlesource.com/818326
Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
Commit-Queue: Yuwei Huang <yuweih@chromium.org>
Cr-Commit-Position: refs/heads/master@{#522938}
[modify] https://crrev.com/a2b5834286485964af1be2f95b9c3159a0fab34d/remoting/client/gesture_interpreter.cc

Labels: Merge-Request-64
This CL only affects Chrome Remote Desktop for iOS and will not affect Chrome.
Project Member

Comment 4 by sheriffbot@chromium.org, Dec 10 2017

Labels: -Merge-Request-64 Hotlist-Merge-Approved Merge-Approved-64
Your change meets the bar and is auto-approved for M64. Please go ahead and merge the CL to branch 3282 manually. Please contact milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), abdulsyed@(Desktop)

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

Comment 5 by bugdroid1@chromium.org, Dec 11 2017

Labels: -merge-approved-64 merge-merged-3282
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cb96fb51cdcfcf7624e342c572a7909686eb0e59

commit cb96fb51cdcfcf7624e342c572a7909686eb0e59
Author: Yuwei Huang <yuweih@chromium.org>
Date: Mon Dec 11 19:56:15 2017

[CRD iOS] Remove mouse button state from mousemove event in drag gesture

Previously we keep sending the "left button down" info with the
mousemove event to the host during a drag gesture, which is interpreted
as mousedown on Windows.

This CL fixes this issue by removing the button state from the mouse
event when it is a mousemove event in a drag gesture.

Bug:  793481 
Change-Id: Ifc2f9a4c0513df5f7f80223cae0c718b6f95ce1b
Reviewed-on: https://chromium-review.googlesource.com/818326
Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
Commit-Queue: Yuwei Huang <yuweih@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#522938}(cherry picked from commit a2b5834286485964af1be2f95b9c3159a0fab34d)
Reviewed-on: https://chromium-review.googlesource.com/820510
Reviewed-by: Yuwei Huang <yuweih@chromium.org>
Cr-Commit-Position: refs/branch-heads/3282@{#143}
Cr-Branched-From: 5fdc0fab22ce7efd32532ee989b223fa12f8171e-refs/heads/master@{#520840}
[modify] https://crrev.com/cb96fb51cdcfcf7624e342c572a7909686eb0e59/remoting/client/gesture_interpreter.cc

Comment 6 by yuweih@chromium.org, Dec 12 2017

Status: Fixed (was: Assigned)

Sign in to add a comment