From cfb73205b1c46189888d64b3b720206e77e6a9c4 Mon Sep 17 00:00:00 2001 From: mattuy Date: Wed, 6 Oct 2021 09:45:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E8=A3=85=E9=A5=B0=E7=AC=A6=E6=B8=B2=E6=9F=93=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/Notation/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/view/Notation/index.js b/src/view/Notation/index.js index e9f9358..b375806 100644 --- a/src/view/Notation/index.js +++ b/src/view/Notation/index.js @@ -59,8 +59,7 @@ function Notation({ offsetX, notation, paragraph }) { let topDecoratorOffset = 0; if (notation.octave > 0) { // 如果有高八度圆点,将顶部装饰符渲染到其上方 - topDecoratorOffset = - octaveInitialOffset - octaveStepOffset * Math.abs(notation.octave); + topDecoratorOffset = octaveStepOffset * Math.abs(notation.octave); } const renderPrefixSups = () => {