Explorar o código

feat: 渐变小节隐藏节拍指针

TIANYONG hai 7 meses
pai
achega
0c7946c5dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/helpers/metronome.ts

+ 1 - 1
src/helpers/metronome.ts

@@ -697,7 +697,7 @@ function isWithinRange(ranges:any[], index:number) {
 	for (const range of ranges) {
 		const start = range[0].measureIndex;
 		const end = range[1].measureIndex;
-		if (index >= start && index <= end) {
+		if (index >= start && index < end) {
 			return true;
 		}
 	}