fixed some navigation issues
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user