Documentation
¶
Overview ¶
Command carouselprobe live-verifies widget.Carousel's swipe on a touch device (#686): the current item follows the finger with the neighbour sliding in, the release animates to the snapped item or back, and a fast flick pages where a slow drag of the same length does not.
The window holds one three-page carousel. The probe prints machine-greppable lines to stdout (logcat tag Bellui on Android):
carouselprobe ready scale=2.62 carousel=0,0+411x891pt carouselprobe pos t=1234 cur=0 x=[-57 167 off] carouselprobe changed cur=1 t=1300
pos lines are sampled every frame-ish (8ms) and printed only when an item moved: x lists each item's position on the track in points, "off" for a hidden item. t is milliseconds since launch. A tracking drag shows a run of pos lines with two items on the track before any release; a settle shows the run continuing after the finger lifts and ending at x=0 for the current item.
Drive it with adb (coordinates in pixels; the ready line gives the carousel's bounds in points, times scale for pixels):
adb shell input swipe 800 1000 700 1000 60 # 100px in 60ms: flick, pages adb shell input swipe 800 1000 700 1000 1500 # same length, slow: snaps back adb shell input swipe 900 1000 200 1000 800 # long drag: pages, tracks first
It quits by itself after ten minutes.
Android: package with `bellui package --target android/arm64 --app-id com.trendvidia.carouselprobe` from this directory, install, launch, then `adb logcat -s Bellui | grep carouselprobe`.