Page MenuHomePhabricator

Browser's autoscroll doesn't work well with sticky outline header
Closed, InvalidPublic

Description

Normally the browser takes care that the item currently highlighted in the SelectWidget when using keyboard interaction is scrolled into view. This is not working well with our current setup where we use the sticky header part.

One workaround applied for this at the moment is triggering our own scrolling during keyboard navigation that respects the offset caused by the sticky part. Still it would be good if we could remove this workaround, when we find a way to allow the browser applying the correct scroll offset itself. See also [1]

Also this is currently causing this visible jump tracked in T312768: Regression: Parameter list jumps when being focused in chrome

[1] https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/813638

Event Timeline

awight renamed this task from Browser's autoscoll doesn't work well with sticky outline header to Browser's autoscroll doesn't work well with sticky outline header.Jul 14 2022, 10:31 AM
awight claimed this task.
awight moved this task from Sprint Backlog to Doing on the WMDE-TechWish-Sprint-2022-07-06 board.
awight moved this task from Doing to Sprint Backlog on the WMDE-TechWish-Sprint-2022-07-06 board.
awight subscribed.

In theory, scroll-padding might help with this issue, but I couldn't get anything to work when experimenting. It's also strange that if you cursor up through the parameters, the list scrolls to put the focused line directly under the sticky header, until the top several items, when the focus goes under the header. Why would that be? Either the browser knows how to keep the text visible or not...?

Setting aside for the day.

Change 814685 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/VisualEditor@master] [WIP] Move scrollable containers further in

https://gerrit.wikimedia.org/r/814685

Change 814685 abandoned by WMDE-Fisch:

[mediawiki/extensions/VisualEditor@master] [WIP] Move menu scrollable container further in

Reason:

Will not continue working on this.

https://gerrit.wikimedia.org/r/814685