Skip to content

Fix heading/camera mode button not responding on launcher (#56)#60

Merged
chriskinal merged 1 commit into
developfrom
fix/heading-mode-launcher-tap
Jul 3, 2026
Merged

Fix heading/camera mode button not responding on launcher (#56)#60
chriskinal merged 1 commit into
developfrom
fix/heading-mode-launcher-tap

Conversation

@chriskinal

Copy link
Copy Markdown
Collaborator

Fixes #56 — tapping the heading/camera-mode button does nothing on the launcher (NativeWebView) build, though it works in a browser.

Cause

The camera-panel buttons (mode/heading cycle, zoom, tilt) were bound on click. The NativeWebView launcher's touch handling doesn't reliably fire click, so the taps were dropped. The rest of the touch UI (bottom nav, sim bar, dialogs) uses pointerdown.

Fix

Bind the five #cp-* camera buttons on pointerdown instead of click. The #campad container already calls stopPropagation on pointerdown, so this doesn't pan the map. Also fixes the zoom/tilt buttons, which had the same latent bug.

Verification

JS syntax-checked. Needs device verification on the launcher build — the whole bug is launcher-touch-specific and can't be reproduced in a browser. Tapping the "M" button should cycle Heading-Up → North-Up → Map → Center.

v26.6.70.

🤖 Generated with Claude Code

The camera-panel buttons (mode/heading cycle, zoom, tilt) were bound on
`click`, which the NativeWebView launcher (touch) doesn't fire reliably —
so tapping the heading-mode button did nothing on the launcher build while
it worked in a browser. Bind them on `pointerdown` instead (the same event
the rest of the touch UI uses); the campad container already stops
propagation so this doesn't pan the map.

Fixes #56.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chriskinal chriskinal merged commit 4c54d19 into develop Jul 3, 2026
4 checks passed
@chriskinal chriskinal deleted the fix/heading-mode-launcher-tap branch July 3, 2026 00:39
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.

Heading mode on launcher version doesn't change when tapped.

1 participant