diff --git a/frontend/app/components/Session/WebPlayer.tsx b/frontend/app/components/Session/WebPlayer.tsx index af0b51b41..518e55461 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); @@ -82,10 +83,11 @@ function WebPlayer(props: any) { } if (activeTab === '' && !showNoteModal && isPlayerReady && contextValue.player) { - contextValue.player.play() + contextValue.player.play() - if (visualOffset !== 0) { + if (visualOffset !== 0 && !visuallyAdjusted) { contextValue.player.jump(visualOffset) + setAdjusted(true) } } }, [activeTab, isPlayerReady, showNoteModal, visualOffset])