0.9.1-alpha.66
Alpha@xaui/native@0.9.1-alpha.66
Patch Changes
-
d2ce35e: feat(carousel): a series of slides, and the controls to move between them
Carouselin the v1 shape: the slides are children rather than adataarray and arenderItem, and every control — the arrows, the dots, the counter, the thumbnails — is a slot rather than ashowXprop.A slide's width comes from the measured track through
carouselMetrics, soitemsPerViewandpeekdivide it rather than a number of points that is wrong on the next screen size. The indicator follows the drag frame by frame on the UI thread, and the settled index is derived from the same offset — which is also what makes it work under a wheel or a trackpad.An arrow, a dot or an autoplay tick moves the track on a hand-run ease-out tween (~420ms, fast off the press and braking onto the slide) rather than
scrollTo({ animated: true }), whose curve is the platform's and close to linear.