Commit 6cab035
committed
Connect drawer: the content is back at the top whenever the drawer closes
The reset watched the sheet's current value and fired one animateScrollTo
when it flipped to the peek. On the device it never took: reopening the
drawer after closing it by the handle, by the Connect tab or by a fling
showed the content where it had been left, so the collapsed peek showed
the wrong rows.
Watch the sheet's target instead, which flips as soon as the collapse is
under way, and keep asking, one attempt per frame, until the content is at
the top; an attempt lost to a drag or fling still holding the content's
scroll is simply retried. Verified on the S21 for all three ways of closing.1 parent d036368 commit 6cab035
1 file changed
Lines changed: 21 additions & 6 deletions
Lines changed: 21 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
325 | 328 | | |
326 | 329 | | |
327 | 330 | | |
328 | | - | |
329 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
330 | 337 | | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
335 | 350 | | |
336 | 351 | | |
337 | 352 | | |
| |||
0 commit comments