Summary: | Drag image for draggable element is incorrect size when element has child outside of its bounds | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Darin Senneff <darin.senneff> | ||||||||||
Component: | UI Events | Assignee: | Nobody <webkit-unassigned> | ||||||||||
Status: | NEW --- | ||||||||||||
Severity: | Normal | CC: | simon.fraser, thorton, webkit-bug-importer, wenson_hsieh, zalan | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | Safari 14 | ||||||||||||
Hardware: | iPhone / iPad | ||||||||||||
OS: | iOS 14 | ||||||||||||
Attachments: |
|
Description
Darin Senneff
2021-07-02 08:28:54 PDT
Still present in Safari 16. I know it’s a whole can of worms to deal with every possible way an element’s drag image should be sized and cropped based on how it and its children are styled. But there certainly can be some improvements made for some common situations. Like, just having too thick a border (like it element #2 in the video attached) results in an awful drag image. Can we at least just have it mirror the original element with anything else cropped out? Created attachment 462364 [details]
Safari 16 desktop screen recording
Still an issue on desktop Safari as well, but better than on iOS/iPadOS.
No issues with Firefox or Chrome (see attachments for those)
Created attachment 462365 [details]
Chrome screen recording
Created attachment 462366 [details]
Firefox screen recording
Just attached some additional screen recordings to show how other browsers handle the drag image. - Chrome and Firefox both look great. - Safari on desktop isn't great, it clips out a good amount of the overflow, but still better than iOS Safari. - Safari iOS still oddly crops/resizes/skews the drag image and looks bad. The original attachment showing iOS Safari 14 is the same as it looks today in v16. |