Middle-click scroll not working over elements with shadowDOM when scroll overflow is used
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
People
(Reporter: rovyko, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
text/html
|
Details |
When a div (e.g. container
) with overflow: auto
is the child of a div (e.g. app
) with display: grid
, middle-clicking over children of container
that have shadow DOMs does not trigger scrolling.
This occurs on Windows 10 and MacOs. Scrolling for Chrome works as expected. I've attached a minimal example that reproduces the issue. Middle click in the white area triggers scrolling, while the red area does not.
Removing display: grid
, overflow: auto
or not using shadow DOMs will cause scrolling to behave as expected.
If the example seems contrived, I posted here[1] with a context snippet that explains why this combination of styles is used.
While trying to find a workaround, I came across the same issue with flex boxes. I've attached another example document. Not sure if that should be a new bug (is a bug at all) or if this title should be edited to include it.
Here is an even more basic example. I realize this issue affects any element that:
- uses scrolling overflow
- has a fixed height, whether through the height attribute, grid, flex or javascript
Updated•6 years ago
|
Comment 4•6 years ago
|
||
ok, so most likely autoscroll is listening events somewhere in light DOM, but should listen in chrome event handler, or, it is using event.target and not event.composedTarget, or both
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Updated•2 years ago
|
Description
•