github GlassHaven/Haven v5.24.29

latest releases: v5.94.92, v5.94.91, v5.94.90...
7 months ago

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

  • lastTapUpMs hoisted 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 && totalMovement crosses touch slop, call onDragStart (which presses button 1) instead of onDrag, and set dragButtonPressed = true. Subsequent moves just call onDrag — same handler, button stays held by the ViewModel. Lift calls onDragEnd (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 two onTap callbacks 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.

Don't miss a new Haven release

NewReleases is sending notifications on new releases.