Commit bdd0f24
committed
Allow passing range option to useSwipeTransition (#32412)
Stacked on #32379
Track the range offsets along the timeline where previous/current/next
is. This can also be specified as an option. This lets you model more
than three states along a timeline by clamping them and then updating
the "current" as you go.
It also allows specifying the "current" offset as something different
than what it was when the gesture started such as if it has to start
after scroll has already happened (such as what happens if you listen to
the "scroll" event).
DiffTrain build for [662957c](662957c)1 parent aeb2edf commit bdd0f24
File tree
35 files changed
+91
-86
lines changed- compiled/facebook-www
- __test_utils__
35 files changed
+91
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1575 | 1575 | | |
1576 | 1576 | | |
1577 | 1577 | | |
1578 | | - | |
| 1578 | + | |
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1575 | 1575 | | |
1576 | 1576 | | |
1577 | 1577 | | |
1578 | | - | |
| 1578 | + | |
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17387 | 17387 | | |
17388 | 17388 | | |
17389 | 17389 | | |
17390 | | - | |
| 17390 | + | |
17391 | 17391 | | |
17392 | 17392 | | |
17393 | | - | |
| 17393 | + | |
17394 | 17394 | | |
17395 | 17395 | | |
17396 | 17396 | | |
| |||
17424 | 17424 | | |
17425 | 17425 | | |
17426 | 17426 | | |
17427 | | - | |
| 17427 | + | |
17428 | 17428 | | |
17429 | 17429 | | |
17430 | 17430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17159 | 17159 | | |
17160 | 17160 | | |
17161 | 17161 | | |
17162 | | - | |
| 17162 | + | |
17163 | 17163 | | |
17164 | 17164 | | |
17165 | | - | |
| 17165 | + | |
17166 | 17166 | | |
17167 | 17167 | | |
17168 | 17168 | | |
| |||
17196 | 17196 | | |
17197 | 17197 | | |
17198 | 17198 | | |
17199 | | - | |
| 17199 | + | |
17200 | 17200 | | |
17201 | 17201 | | |
17202 | 17202 | | |
| |||
0 commit comments