Bug 222636
Summary: | overflow scroll doesn't auto-scroll when dragging, making some drop targets inaccessible | ||
---|---|---|---|
Product: | WebKit | Reporter: | Devon Govett <govett> |
Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | megan_gardner, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh, woodlxf00 |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 14 | ||
Hardware: | Unspecified | ||
OS: | macOS 10.15 |
Devon Govett
Safari on macOS does not auto scroll elements with overflow: auto/scroll when dragging over them. Chrome and Firefox both auto scroll, as does Safari on iOS. Safari on macOS is the only browser that does not auto scroll.
Steps to reproduce:
1. Open https://codepen.io/devongovett/pen/QWGxwGY in Safari on macOS.
2. Drag the green element at the top over the lorem ipsum text to the bottom of the scrollable region. Notice that it does not auto scroll, so there's no way to reach the drop target at the bottom.
In researching this, I noticed that there is a setting for this (AutoscrollForDragAndDropEnabled), for which the default value is `false`. See https://github.com/WebKit/WebKit/blob/cc94b9412ed0dbccd33464000a264fd7987c881f/Source/WebCore/page/Settings.yaml#L55. Appears to have been introduced in https://bugs.webkit.org/show_bug.cgi?id=121559. I could not find where iOS overrides this though.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/75240648>