|
@@ -718,6 +718,12 @@ const transSinglePage = () => {
|
|
|
const needY = svgPage.height - (staffLine.y+staffLine.height) - 10;
|
|
|
// @ts-ignore
|
|
|
document.getElementById('osmdSvgPage1').style.transform = `translateY(${needY}px)`;
|
|
|
+ // 一行谱需要同时偏移光标的位置
|
|
|
+ const cursorDom = document.getElementById('cursorImg-0') || null;
|
|
|
+ if (cursorDom) {
|
|
|
+ cursorDom.style.transform = state.musicRenderType === 'staff' ? `translate(6Px, ${needY}px)` : `translate(6.3Px, ${needY}px)`;
|
|
|
+ console.log('一行谱11111')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|