Skip to content

Improve mobile flight with gestures and a bottom instrument dock - #12

Merged
kai987 merged 1 commit into
mainfrom
codex/mobile-flight-gestures
Oct 4, 2026
Merged

kai987 merged 1 commit into
mainfrom
codex/mobile-flight-gestures

Conversation

@kai987

@kai987 kai987 commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Phone flight controls previously required holding small arrow buttons, while the bombing panel, wind compass and minimap covered the flight view. This change moves those instruments into a bottom dock and lets the flight view respond directly to one- and two-finger gestures.

Holding one finger gently advances the drone and ramps horizontal thrust over two seconds. Dragging controls forward/backward flight and strafing; a second finger independently controls altitude and turning. Reversed inputs brake through zero. Release, cancellation, lost capture, window blur, backgrounding, resizing and unmount clear the relevant axes and stop the animation loop. Rust retains the existing acceleration, braking and speed limits.

The mobile dock adapts to portrait and landscape, preserves minimap dragging/zooming, and keeps the main buttons at least 44px high. Desktop menus and keyboard/mouse controls retain their existing behavior. Chinese, Japanese and English instructions and READMEs describe the new controls.

Validation: npm run check passed all 261 Node and 46 Rust tests; npm run build and git diff --check passed. Thirteen new gesture tests cover the ramp, signed drags, independent pointer roles, cancellation/reset, bounded inputs, and real Rust/WASM acceleration and braking. Browser QA on the final Vite build covered 390×844, 320×640, 844×390, 600×360 and 1280×720; native drag, bombing, map zoom/pan/follow, camera cycling, pause/resume, day/night and immediate language switching passed with no overflow or console warnings/errors. Simultaneous touch and sustained hold were verified by controller/Rust tests; an actual phone Safari session was not available.

@kai987
kai987 merged commit edfcfb4 into main Oct 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant