diff --git a/frontend/app/components/Session/WebPlayer.tsx b/frontend/app/components/Session/WebPlayer.tsx index af0b51b41..98dfd3f72 100644 --- a/frontend/app/components/Session/WebPlayer.tsx +++ b/frontend/app/components/Session/WebPlayer.tsx @@ -31,6 +31,7 @@ function WebPlayer(props: any) { const [activeTab, setActiveTab] = useState(''); const [showNoteModal, setShowNote] = useState(false); const [noteItem, setNoteItem] = useState(undefined); + const [visuallyAdjusted, setAdjusted] = useState(false); // @ts-ignore const [contextValue, setContextValue] = useState(defaultContextValue); @@ -84,8 +85,9 @@ function WebPlayer(props: any) { if (activeTab === '' && !showNoteModal && isPlayerReady && contextValue.player) { contextValue.player.play() - if (visualOffset !== 0) { + if (visualOffset !== 0 && !visuallyAdjusted) { contextValue.player.jump(visualOffset) + setAdjusted(true) } } }, [activeTab, isPlayerReady, showNoteModal, visualOffset])