When using drag and drop in a webview the screen coordinates (event.screen{X,Y}) for some drag events (drag, drag enter, drag leave, etc.) is incorrect.
What is the expected output?
The event screen coordinate should be in screen space.
What do you see instead?
The event screen coordinates are in client space.
Attached is a screen capture of a simple test I ran. Notice the screen coordinate jump from mousedown and dragstart to drag.
The test was done by embedding "http://jsbin.com/rodenub/3" in sample webview app from: https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/webview-samples/webview
I have tested this on Linux only.
|
Deleted:
drag-screen-coordinates-invalid.png
57.6 KB
|
Comment 1 by majidvp@chromium.org
, Apr 4 2016