Repository navigation
Commit de861e0
committed
fix(Item): a list row's touch press release runs on the compositor
The release animated a registered custom property feeding a gradient, which
runs on the main thread: while script ran, a released row stayed fully
pressed, then snapped to rest, and every frame of the fade repainted the
row. The press now paints on a ::before layer whose opacity is the
strength; the release is an opacity keyframe animation on the same clock and
curve (from the UIKit constants table), which keeps fading on the
compositor and does no Layout or Paint. Item and TreeList rows compose it.1 parent 1d95804 commit de861e0
11 files changed
Lines changed: 994 additions & 8 deletions
File tree
- .changeset
- packages/core/src
- Item
- List/__tests__
- TreeList
- motion
- uikit
- utils
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
884 | 886 | | |
885 | 887 | | |
886 | 888 | | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
887 | 893 | | |
888 | 894 | | |
889 | 895 | | |
| |||
0 commit comments