|
@@ -163,15 +163,16 @@ export function destroySmoothAnimation() {
|
|
|
|
|
|
/**
|
|
|
* 根据播放时间进度移动处理
|
|
|
+ * isIgnoreFilter 忽略这种 判断,因为有些只需要谱面移动
|
|
|
*/
|
|
|
-export function moveSmoothAnimationByPlayTime(time?: number) {
|
|
|
+export function moveSmoothAnimationByPlayTime(time?: number, isIgnoreFilter = false) {
|
|
|
// 暂停之后不进行移动了
|
|
|
if (state.playState === "paused") {
|
|
|
return
|
|
|
}
|
|
|
const currentTime = time || getAudioCurrentTime()
|
|
|
// 某些浏览器 音频暂停后返回的时间会倒退,把这种时间过滤掉
|
|
|
- if(currentTime < smoothAnimationState.oldCurrentTime) {
|
|
|
+ if(currentTime < smoothAnimationState.oldCurrentTime && !isIgnoreFilter) {
|
|
|
return
|
|
|
}
|
|
|
smoothAnimationState.oldCurrentTime = currentTime
|