Browse Source

去掉华为特殊处理代码

TIANYONG 3 months ago
parent
commit
028527636a
2 changed files with 2 additions and 4 deletions
  1. 2 1
      src/helpers/formateMusic.ts
  2. 0 3
      src/helpers/metronome.ts

+ 2 - 1
src/helpers/formateMusic.ts

@@ -796,7 +796,8 @@ export const formateTimes = (osmd: OpenSheetMusicDisplay) => {
 	const customNoteCurrentTime = customData.customNoteCurrentTime;
 	const detailId = state.examSongId + "";
 	const partIndex = state.partIndex + "";
-	let fixtime = browserInfo.huawei ? 0.08 : 0; //getFixTime()
+	// let fixtime = browserInfo.huawei ? 0.08 : 0; //getFixTime()
+	let fixtime = 0;
 	const allNotes: any[] = [];
 	const allNoteId: string[] = [];
 	const allMeasures: any[] = [];

+ 0 - 3
src/helpers/metronome.ts

@@ -150,9 +150,6 @@ class Metronome {
 
 	// 播放
 	sound = (currentTime: number) => {
-		if (!state.sectionStatus){
-			currentTime = setCurrentTime(currentTime);
-		}
 		let index = -1;
 		let activeMetro = -1;
 		for (let i = 0; i < metronomeData.metroList.length; i++) {