From 9ca3de57762f0a31fd9daa84e81b140275bed4f4 Mon Sep 17 00:00:00 2001 From: viscum <95419201+0x6DD8@users.noreply.github.com> Date: Thu, 19 Feb 2026 17:04:13 +0100 Subject: [PATCH] fix: Set default intended direction to forward for low speed It feels weird when the boat is not moving and the controls are in reverse after moving backwards, previously the user had to move Forwards a bit to reset controls --- src/browser/hooks/useBoat/navigation/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/browser/hooks/useBoat/navigation/index.tsx b/src/browser/hooks/useBoat/navigation/index.tsx index 5c71c55..1767f8b 100644 --- a/src/browser/hooks/useBoat/navigation/index.tsx +++ b/src/browser/hooks/useBoat/navigation/index.tsx @@ -95,6 +95,9 @@ export const useNavigation = ({ currentState.intendedDirection = INTENDED_DIRECTION.FORWARD; } else if (currentState.speed < -0.001) { currentState.intendedDirection = INTENDED_DIRECTION.BACKWARD; + } else { + // Default to forward if speed is very low but not exactly zero + currentState.intendedDirection = INTENDED_DIRECTION.FORWARD; } }