carouselprobe

command
v1.3.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: BSD-3-Clause Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL