Touchpad, finger drag and pinch pans share one path: the content moves first, then a single RubberBand per axis takes the travel past a bound with UIScrollView resistance, translated and never scaled, capped at a quarter of the view. Lifting springs a pulled edge back with the Android edge spring; otherwise the view flings with the velocity of the last 100 ms, and a fling that reaches a bound carries a little past it before springing back. Wheel notches coast and stop at the bound. Touchpad scroll-end is routed to the view that took the scroll, and the coast speed is measured on the platform's own event timestamps, so a late or stalled frame no longer drops the inertia of a short flick. Fling friction is 0.02 rather than Android's 0.015 for a slightly shorter coast. |
||
|---|---|---|
| .. | ||
| examples | ||
| rsc | ||
| src | ||
| tests | ||
| .clang-format | ||
| CMakeLists.txt | ||