fixed some navigation issues

This commit is contained in:
roormonger
2026-03-23 17:09:47 -04:00
parent f6ae56c848
commit 4e0b510d7f
5 changed files with 43 additions and 16 deletions

View File

@@ -8,7 +8,7 @@ export const useFocusableAutoScroll = (config?: UseFocusableConfig) => {
useEffect(() => {
if (mode === 'gamepad' && result.focused && result.ref.current) {
result.ref.current.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' });
result.ref.current.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'center' });
}
}, [result.focused, mode]);