Touchpad mode now supports drag-with-button-1 (moving windows, selecting text, dragging scrollbars) via the standard trackpad "tap-then-drag" gesture (RealVNC convention).
Gesture summary (touchpad mode)
| Gesture | Action |
|---|---|
| Single tap | Click at cursor (immediate) |
| Tap → within 300 ms touch down + move | Drag with button 1 held — cursor follows finger, button 1 releases on lift |
| Tap → within 300 ms tap again (no move) | Double-click (two onTap callbacks)
|
| Long-press (no preceding tap) | Right-click at cursor |
| Two-finger pinch / pan / scroll | Zoom / pan / scroll (unchanged) |
Mechanics
lastTapUpMshoisted to composable scope, recorded after every short-tap gesture in touchpad mode.- At the next
firstDown,isFollowUpTouch = (now − lastTapUpMs) ≤ 300 ms && inputMode == TOUCHPAD. - In the touchpad single-finger drag branch: when
isFollowUpTouch && totalMovementcrosses touch slop, callonDragStart(which presses button 1) instead ofonDrag, and setdragButtonPressed = true. Subsequent moves just callonDrag— same handler, button stays held by the ViewModel. Lift callsonDragEnd(releases button 1). - During
isFollowUpTouch, the long-press right-click timer is suppressed — so tap-tap-hold-still resolves cleanly as a double-click via twoonTapcallbacks instead of a phantom right-click. Plain long-press (no preceding tap) still triggers right-click.
Applied to both VNC and RDP. Direct touch mode unchanged in both protocols.
Still open from #107
Bandwidth-based auto colour-depth downshift is the last item. That's a separate release — mid-session SetPixelFormat is fiddly because ZRLE/ZLIB zlib streams are session-continuous, so a safer "auto-suggest with one-click reconnect at lower depth" approach is likely to land instead.
Build artifacts
Signed APKs for arm64 and x86_64 attached. arm64 is the one for phones and tablets.