| Summary: | Small programmatic scrolls with scroll snap don't scroll in WebKit | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Emory Fierlinger <emory.fierlinger> |
| Component: | Scrolling | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | dino, graouts, graouts, simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 15 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://www.eightyone.co.nz/projects/safe-night-a-thon | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=270064 | ||
|
Description
Emory Fierlinger
2022-06-17 18:26:40 PDT
What does the scroll function do in your code example? Is it actually performing scrolling by calling something like scrollTo() or changing some CSS properties to affect where things are positioned and simulate scrolling? I think the page is doing small programmatic scrolls; in WebKit these end up snapping back to the nearest snap point, but in other browsers they are allowed to scroll. The spec <https://drafts.csswg.org/css-scroll-snap/#overview> says "author can request a particular bias for the scrollport to land on a snap position after scrolling operations (including programmatic scrolls such as the scrollTo() method)." so we should investigate to see if WebKit is correct, or other browsers are correct. |