You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scroll-customization-api/explainer.md
+4-2
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,11 @@ Many native mobile applications have [UI effects that interact with scrolling](h
8
8
9
9
The fundamental problem here is that scrolling on the web is a big "magical" black-box. In other UI frameworks scrolling is usually implemented as a library (with extensibility points) on top of primitives. The goal of the Houdini Scroll Customization proposal is to break open this black box to make scrolling on the web [extensible](https://extensiblewebmanifesto.org/).
10
10
11
-
## Threaded scrolling
11
+
## Supporting Threaded scrolling
12
12
13
-
Modern browsers implement scrolling off of the main JavaScript thread to ensure that scrolling can be serviced reliably at 60fps. This proposal builds on [Compositor Worker](https://github.com/w3c/css-houdini-drafts/blob/master/composited-scrolling-and-animation/Explainer.md) to permit customizations that typically run in-sync with scrolling. In the future we may also want high performance applications to be able to opt-out of threaded scrolling and also use a variant of these APIs from the main JavaScript execution context.
13
+
Modern browsers implement scrolling off of the main JavaScript thread to ensure that scrolling can be serviced reliably at 60fps. We want to allow arbitrary scroll effects to be written using JavaScript that runs every scroll frame. This proposal builds on [Compositor Worker](https://github.com/w3c/css-houdini-drafts/blob/master/composited-scrolling-and-animation/Explainer.md) to permit customizations that typically run in-sync with scrolling.
14
+
15
+
In the future we also want high performance applications to be able to opt-out of threaded scrolling and use a variant of these APIs from the main JavaScript execution context. The details of how to permit such customization without risking poor performance are complex and controversial and so are not yet covered as part of this proposal. But regardless of the thread in which it's executing, the mental model for scroll customization is the same.
0 commit comments