fix: 修复顶部装饰符渲染位置计算错误

This commit is contained in:
2021-10-06 09:45:37 +08:00
parent 44b4ef1a44
commit cfb73205b1
+1 -2
View File
@@ -59,8 +59,7 @@ function Notation({ offsetX, notation, paragraph }) {
let topDecoratorOffset = 0; let topDecoratorOffset = 0;
if (notation.octave > 0) { if (notation.octave > 0) {
// 如果有高八度圆点,将顶部装饰符渲染到其上方 // 如果有高八度圆点,将顶部装饰符渲染到其上方
topDecoratorOffset = topDecoratorOffset = octaveStepOffset * Math.abs(notation.octave);
octaveInitialOffset - octaveStepOffset * Math.abs(notation.octave);
} }
const renderPrefixSups = () => { const renderPrefixSups = () => {