Re: [csswg-drafts] [css-scroll-anchoring-1] Anchor selection should prefer 'active' nodes (#5018)

Maybe more generally we should maintain a concept of the active node which is updated by a variety of activities such as the ones proposed above.

Some other potential activities:
* hover - could avoid buttons sliding out from under your mouse.
* click / tap - same idea as hover, anchoring something you are interacting with so that further interactions are not disrupted.

One thing to be careful of though is that we don't interfere with draggable interfaces. I.e. imagine a scrollable list where you can drag items to reorder - we wouldn't want dragging an item to try to keep that node anchored in the scroller as it would no longer be connected to your cursor / finger.

-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5018#issuecomment-620723383 using your GitHub account

Received on Tuesday, 28 April 2020 16:42:21 UTC