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

Issue 756847 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Drag point offset with stylus

Project Member Reported by yamaguchi@chromium.org, Aug 18 2017

Issue description

Chrome Version: 62.0.3189.0
Chrome OS Version: 9844.0.0 dev-channel test
Chrome OS Platform: Chromebook Plus

Steps To Reproduce:
(1) Drag a writable file in the Files app. using the stylus.
(2) Hover it over "Downloads" root directory.
(3) See the icon in the drag shadow

See the attached picture.
Looks like the actual pointer position is shifted from the actual contact point of the stylus.
We can also see that "laser pointer" is shown in the right position.

It looks as if you cannot move the file into the root "Downloads" directory, but actually it's treated as a drop to "Offline" virtual folder due to the pointer offset, thus denied to move files there.
We can also see that "Offline" is highlighted blue to indicate that it's being hovered.
 
Chromebook_Plus_stylus.png
836 KB View Download

Comment 1 by osh...@chromium.org, Aug 18 2017

Cc: denniskempin@chromium.org reve...@chromium.org kaznacheev@chromium.org
This offset is not observed when clicking a file or folder. So it might be specific to drag, or the Files app.
The same issue seems to happen with touch as well. Is it possible this is intended for touch because without an offset the file would not be visible under the users finger?

AFAIR drag position is being handled in a separate pipeline (android.view.ViewRootImpl#dispatchDragEvent), so I would not be surprised if some offsets are applied differently (compared to a regular touch).

Comment 5 by sashab@chromium.org, Feb 20 2018

Labels: -Pri-3 CrOS-FilesApp-Touch Pri-2
Status: Untriaged (was: Unconfirmed)

Comment 6 by sashab@chromium.org, Feb 28 2018

Labels: -CrOS-FilesApp-Touch CrOSFilesCategory-Touch
Status: Available (was: Untriaged)
Reproduced on 71.0.3572.0

For stylus we should not use any offset. It's possible we'll want to for touch. The drag shadow should be placed as if the touch point with the stylus was in the top left corner (as we do with mouse). 

Sign in to add a comment