@@ -196,10 +196,11 @@ const {
196196 waveformPresentation .state .top .visualPending === true ||
197197 waveformPresentation .state .bottom .visualPending === true
198198})
199- useHorizontalBrowseWaveformPreviewSuspension ({
199+ const { handlePlayerInteraction } = useHorizontalBrowseWaveformPreviewSuspension ({
200200 nativeTransport ,
201201 syncDeckRenderState ,
202- setAuditionPresentationSuspended
202+ setAuditionPresentationSuspended ,
203+ playerInteractionEnabled : () => ! isEditMode .value
203204})
204205const notifyDeckSeekPresentationIntent = (deck : DeckKey , seconds : number ) => {
205206 waveformPresentation .markSeek (deck , seconds )
@@ -218,7 +219,6 @@ const resolveDeckDurationSeconds = (deck: DeckKey) =>
218219 )
219220const topDeckUiPlaying = computed (() => resolveDeckPlaying (' top' ))
220221const bottomDeckUiPlaying = computed (() => resolveDeckPlaying (' bottom' ))
221- const HORIZONTAL_BROWSE_NEGATIVE_PLAYBACK_EPSILON_SEC = 0.0001
222222const resolveDeckWaveformPlaybackActive = (deck : DeckKey ) =>
223223 resolveHorizontalBrowseDeckWaveformPlaybackActive ({
224224 deck ,
@@ -227,7 +227,7 @@ const resolveDeckWaveformPlaybackActive = (deck: DeckKey) =>
227227 auditionPresentationSuspended .value || nativeTransport .state .auditionSuspended ,
228228 topRenderCurrentSeconds: topDeckRenderCurrentSeconds ,
229229 bottomRenderCurrentSeconds: bottomDeckRenderCurrentSeconds ,
230- negativePlaybackEpsilonSec: HORIZONTAL_BROWSE_NEGATIVE_PLAYBACK_EPSILON_SEC
230+ negativePlaybackEpsilonSec: 0.0001
231231 })
232232const topDeckWaveformPlaybackActive = computed (() => resolveDeckWaveformPlaybackActive (' top' ))
233233const bottomDeckWaveformPlaybackActive = computed (() => resolveDeckWaveformPlaybackActive (' bottom' ))
@@ -734,6 +734,7 @@ const resolveDeckToolbarState = (deck: DeckKey) => {
734734
735735useHorizontalBrowseModeShellHotkeys ({
736736 runtime ,
737+ onPlayerInteraction: handlePlayerInteraction ,
737738 touchDeckInteraction ,
738739 resolveDeckSong ,
739740 ejectDeckSong: handleDeckEjectSong ,
@@ -998,6 +999,10 @@ onUnmounted(() => {
998999 'is-light-theme': isLightTheme,
9991000 'is-fader-controls-expanded': faderControlsExpanded && !isEditMode
10001001 }"
1002+ @pointerdown.capture =" handlePlayerInteraction"
1003+ @wheel.capture =" handlePlayerInteraction"
1004+ @keydown.capture =" handlePlayerInteraction"
1005+ @drop.capture =" handlePlayerInteraction"
10011006 >
10021007 <div class =" controls" :class =" { 'controls--edit': isEditMode }" >
10031008 <HorizontalBrowseEditDeckControls
0 commit comments