Repository navigation
Commit 10b416e
committed
test(List): the List reorder's browser proofs in Chromium and WebKit
ListReorder.interaction.browser.spec.ts drives the Reorderable stories with
real touch on a touch screen that is not iOS (UIKit's motion is the same on
every touch screen): the hold that claims and the flick that scrolls,
one-to-one tracking and the clamp at the list's end, the slide and drop
curves against the UIKit springs (seeked animations), the autoscroll's
whole-point steps on a 20 ms clock, a second finger during the drag, a pinch
on a handle (moving, and held still past the claim), the slides and the drop
moving through a main-thread block in both engines, no Layout or Paint per
move, right to left, one whole focus ring on a focused handle (clear of its lines,
on a 44 pt target that makes its row no taller), a tap opening
the handle's moves (and a drag not opening them), and storyboards of a drag
and a settled drop. With a mouse a handle drags at once with no motion.
Under Reduce Motion (design:reduced-motion) the passed rows, the drop and a
key move cross-fade in place: nothing travels (the drop fades out where the
finger left it, takes its slot while transparent and fades in), and every
row is at rest and fully shown within the 200 ms fade. A held finger locks text selection on
the handle until the lift (the gesture host's lock), and with a mouse the
handle styles text as a plain button does.1 parent a361da6 commit 10b416e
3 files changed
Lines changed: 1291 additions & 3 deletions
File tree
- packages/core/src/List
- __tests__
0 commit comments