Skip to content

Commit

Permalink
Fix odd scroll position on load
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Oct 8, 2023
1 parent ec3cbdd commit 86b5387
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ export default function Ambassadors(props: OverlayOptionProps) {
}
}, []);

// Check the arrow visibility on mount
// Sometimes browsers restore odd scroll positions
useEffect(() => {
handleArrowVisibility();
}, [handleArrowVisibility]);

return (
<div className={classes(styles.ambassadorList, className)}>
<div className={styles.scroll}>
Expand Down

0 comments on commit 86b5387

Please sign in to comment.