|
@@ -1708,3 +1708,15 @@ export const refreshMusicSvg = () => {
|
|
|
}
|
|
|
musicScoreRef.value?.refreshMusicScore()
|
|
|
}
|
|
|
+
|
|
|
+// 指法改变显示的时候 osdmScrollDomWith 宽度会变化 所以指法改变的时候这个宽度重新计算
|
|
|
+watch(
|
|
|
+ () => state.setting.displayFingering,
|
|
|
+ () => {
|
|
|
+ nextTick(()=>{
|
|
|
+ if (smoothAnimationState.osdmScrollDom) {
|
|
|
+ smoothAnimationState.osdmScrollDomWith = smoothAnimationState.osdmScrollDom.offsetWidth | 0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+)
|