From 1852cafcaca76d664140410957d061b8ce0f5042 Mon Sep 17 00:00:00 2001 From: francy51 Date: Thu, 4 Jun 2026 12:33:04 -0400 Subject: [PATCH] Flip orbit camera vertical drag to iPhone-style Drag down now raises the camera so the galaxy shifts down with the cursor (content follows finger). Horizontal was already correct (drag right moves the scene right). Matches the feel of panning a map on iOS. --- apps/game/src/camera.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/game/src/camera.rs b/apps/game/src/camera.rs index 6ef9dad..cd328d3 100644 --- a/apps/game/src/camera.rs +++ b/apps/game/src/camera.rs @@ -77,7 +77,10 @@ pub fn orbit_camera_control( if mouse_input.pressed(MouseButton::Left) && !cursor_over_ui { for event in mouse_motion.read() { orbit.yaw -= event.delta.x * ORBIT_ROTATE_SENSITIVITY; - orbit.pitch -= event.delta.y * ORBIT_ROTATE_SENSITIVITY; + // Vertical is flipped relative to a "trackball" feel so the content + // follows the finger (iPhone-style): drag down → camera rises → + // scene appears to shift down with the cursor. + orbit.pitch += event.delta.y * ORBIT_ROTATE_SENSITIVITY; } } else { mouse_motion.clear();