Drag start doesn't work when hiding the target element
Reported by
mulej.ma...@gmail.com,
Jun 20 2018
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 Steps to reproduce the problem: Make an element draggable and hide it in it's ondragstart handler(display=none). What is the expected behavior? Shouldn't trigger the ondragend handler. What went wrong? It will immediately triggers the ondragend handler. Did this work before? N/A Chrome version: 67.0.3396.87 Channel: stable OS Version: 10.0 Flash Version:
,
Jun 20 2018
,
Jun 20 2018
This is intentional behavior: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/page/drag_controller.cc?rcl=676b5fae19bd233e4cce1479d631e421fec9e7b1&l=1173 The code fix is simple, if we decide we want to change this. (From my perspective, I don't see a huge problem with allowing this; the element that was originally hit-tested should be the one dragged, even if dragstart does some weird layout stuff) |
|||
►
Sign in to add a comment |
|||
Comment 1 by susan.boorgula@chromium.org
, Jun 20 2018