Skip to content

Commit 3b09401

Browse files
committed
Tweak p2r use case.
1 parent dbce29c commit 3b09401

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

css-scroll-api/UseCases.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ This is one of the more tricky effects.
3636
- Can transition into and out-of the overscroll effect without lifting the finger
3737
- Can fling into the overscroll effect ("peek")
3838
- Can fling out of the overscroll effect
39-
- In browsers that lack scroll latching, chains correctly for spring physics. Effectively the spring "captures" the scroll impulse first when collapsing and last when expanding.
40-
- Eg. scrolling an iframe inside a document with p2r, pull UI starts to show, finger direction is reversed, now pull UI needs to collapse in preference is scrolling the iframe.
39+
- Scroll targeted correctly for spring physics. Effectively, the spring "captures" the scroll impulse first when collapsing and last when expanding.
40+
- Eg. If you place your finger inside an iframe within a document with p2r while the header is showing, target the p2r document if the scroll would collapse the header, but target the iframe if the scroll would expand the header.
41+
- In browsers without scroll latching, scrolling an iframe inside a document with p2r, pull UI starts to show, finger direction is reversed, now pull UI needs to collapse in preference is scrolling the iframe.
4142
- Scrolling an iframe with p2r inside of a normal document, when the limit of the iframe is reached first, the document scrolls, and only when that limit is reached does the spring effect begin (in our prototypes, anything else feels like broken physics).
43+
- Pull to refresh must compose properly with snap points.
4244

4345
This means the effect has a number of inputs and outputs.
4446
input: the scroll value, the limit of the rubber band

0 commit comments

Comments
 (0)