Invalid DragShadowBuilder position on ChromeOS
Reported by
olivier....@myscript.com,
Jul 18
|
||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36 Steps to reproduce the problem: 1. Build and launch this Google codelab https://github.com/googlecodelabs/optimized-for-chromeos 2. Drag the "Drag me" text view 3. Do a configuration change (rotation in tablet mode for instance) 4. Drag the "Drag me" text view What is the expected behavior? Position of the "Drag me" text view follows the touch position What went wrong? Position of the "Drag me" has a huge (kind of unpredictable) offset both in x & y coordinates after configuration change. Once the issue occurs, it's always the case, doesn't seem the case the very first time. Did this work before? N/A Chrome version: 67.0.3396.99 Channel: stable OS Version: OS X 10.12.6 Flash Version: I've initially opened a bug on the Android library tracker but they closed it telling me it's a ChromeOS issue and that I should open a bug here. The question asked doesn't seem to indicate I can detail detailed Android (on ChromeOS) development details, this tracker being more Chrome Browser / Web developer oriented it seems. I copy the details of my initial bug here: Using the sample code provided, triggering a drag and drop using Activity.startDragAndDrop works properly except the DragShadowBuilder position being wrong sometimes. It can happen that it's ok but after a configuration change (rotation, screen resizeā¦), there is an (huge) offset between finger position (DragEvent x, y in DRAG_LOCATION) and the display of the drag shadow. The x, y position of the DragEvent are correct, only the shadow is wrong. Works perfectly on Android on phones and tablets, only issues on ChromeOS (M67 (67.0.3396.99 / stable) or M69 (69.0.3473.0 / dev)) on Pixelbook or Samsung Chromebook PLUS or PRO. I already implemented a drag and drop solution in my own app without using this Codelab with slight different approach and custom drag shadow builder implementation and had the same issue. I tried this code lab to check if the issue was on my side or not. Apparently, not.
,
Jul 18
,
Jul 18
,
Jul 20
,
Nov 16
Hello, the bug is still present in ChromeOS 70. Do you have any news?
,
Nov 29
Hey Hirono, can you take a look here?
,
Dec 3
As Hirono is out, Cici, could you please have a look? You might want to start with creating a buganizer issue of this first.
,
Dec 3
,
Jan 11
This issue has an owner, a component and a priority, but is still listed as untriaged or unconfirmed. By definition, this bug is triaged. Changing status to "assigned". Please reach out to me if you disagree with how I've done this.
,
Jan 14
Hi, This issue is still unconfirmed on your side as far as I know. Do you need more information about reproduction?
,
Yesterday
(42 hours ago)
We've also run into this issue. I just filed a separate bug: https://bugs.chromium.org/p/chromium/issues/detail?id=923896 until I discovered this one.
,
Yesterday
(40 hours ago)
OK - I think I have a repro that illustrates the problem with the "Optimized for ChromeOS" demo app. 1. Build and deploy "step-10 finished" project on the device 2. Launch it and try dragging from the Drag Me! square. 3. Dragged text is correctly centered on the touch point. 4. Click on the maximize full screen icon at the top right of the window. 5. Drag from the Drag Me! square 6. The dragged text is now offset above the touch point. This is not exactly the same as the major issue we've seen, but perhaps it points the way toward the bug?
,
Yesterday
(39 hours ago)
I personally never found a single exact scenario but it definitely seems that configuration change should be involved (you used maximize to full screen, I use rotation or switch from desktop to tablet mode). What I noticed is that once it's broken it's hard (impossible?) to restore initial/correct behavior. Or maybe after a complete reboot? Full reinstall?
,
Yesterday
(38 hours ago)
A reboot fixes it for us for a little while and then the offset reappears at some reliably short interval after. |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by olivier....@myscript.com
, Jul 18