[csswg-drafts] [css-scroll-snap] Programmatically scroll to snap points (#8558)

SebastianZ has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-scroll-snap] Programmatically scroll to snap points ==
@Schepp mentioned in #156 that he'd like to have a way to programmatically scroll to a certain snap point.

There are indeed use cases in which authors may want more explicit control over the scroll position when scrolling with a scroll container. E.g. scrolling to a specific image in a gallery.

A possible solution for that would be to reuse the [`scrollTo()` function](https://drafts.csswg.org/cssom-view/#dom-element-scrollto) for that. Its `ScrollToOptions` dictionary could be extended by a new option indicating a snap point.

Sebastian

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8558 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 10 March 2023 22:22:14 UTC