|
@@ -35,7 +35,7 @@ import {
|
|
|
api_startDelayCheck,
|
|
|
api_closeDelayCheck,
|
|
|
} from "/src/helpers/communication";
|
|
|
-import state, { IPlayState, clearSelection, handleStopPlay, onPlay, resetPlaybackToStart, togglePlay, initSetPlayRate, resetBaseRate } from "/src/state";
|
|
|
+import state, { IPlayState, clearSelection, handleStopPlay, onPlay, resetPlaybackToStart, togglePlay, initSetPlayRate, resetBaseRate, scrollViewNote } from "/src/state";
|
|
|
import { IPostMessage } from "/src/utils/native-message";
|
|
|
import { usePageVisibility } from "@vant/use";
|
|
|
import { browser } from "/src/utils";
|
|
@@ -358,6 +358,8 @@ const handleScoreResult = (res?: IPostMessage) => {
|
|
|
|
|
|
/** 开始评测 */
|
|
|
export const handleStartBegin = async (preTimes?: number) => {
|
|
|
+ // 滚动到当前小节所在区域
|
|
|
+ scrollViewNote(true);
|
|
|
evaluatingData.needPlayTick = false;
|
|
|
if (state.isAppPlay) {
|
|
|
await api_cloudSetCurrentTime({
|