@moises.ai/design-system 4.15.8 → 4.15.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +366 -366
- package/package.json +1 -1
- package/src/components/PreviewCard/PreviewCard.jsx +6 -2
package/package.json
CHANGED
|
@@ -208,8 +208,8 @@ export const PreviewCard = forwardRef(function PreviewCard(
|
|
|
208
208
|
|
|
209
209
|
const seekTime =
|
|
210
210
|
typeof newTime === 'number' ? newTime : (ws.getCurrentTime?.() ?? 0)
|
|
211
|
-
const
|
|
212
|
-
|
|
211
|
+
const previousWasPlaying = Boolean(previousActive?.isPlaying?.())
|
|
212
|
+
const wasPlaying = previousWasPlaying || wavegroup.state.isPlaying
|
|
213
213
|
|
|
214
214
|
pendingSeekTimeRef.current = seekTime
|
|
215
215
|
skipTimeSyncRef.current = true
|
|
@@ -221,6 +221,10 @@ export const PreviewCard = forwardRef(function PreviewCard(
|
|
|
221
221
|
ws.setTime(seekTime)
|
|
222
222
|
previousActive.pause()
|
|
223
223
|
|
|
224
|
+
if (!previousWasPlaying) {
|
|
225
|
+
previousActive.emit?.('pause')
|
|
226
|
+
}
|
|
227
|
+
|
|
224
228
|
if (!isSafari) {
|
|
225
229
|
ws.setOptions({ progressColor })
|
|
226
230
|
}
|