Browse Source

Merge branch 'feature-tianyong-newVersion' into ktyq-test-new

TIANYONG 10 months ago
parent
commit
5ace11a03a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/page-instrument/view-detail/smoothAnimation/index.ts

+ 2 - 2
src/page-instrument/view-detail/smoothAnimation/index.ts

@@ -445,8 +445,8 @@ function getPointsPosByBatePos(): pointsPosType {
    }
    extendPoint.MeasureNumberXML += 100 // 防止MeasureNumberXML重复
    extendPoint.noteId += 100 // 防止noteId重复
-   // 当总长度减30小于最后一个音符时候,取最后一个音符加15
-   extendPoint.x = smoothAnimationState.canvasDomWith - 30 > extendPoint.x ? smoothAnimationState.canvasDomWith - 30 : extendPoint.x + 15
+   // 当总长度减10 和 最后一个音符加 10 取最大值 34是一倍的边距
+   extendPoint.x = Math.max(smoothAnimationState.canvasDomWith - 34 * state.zoom - 10, extendPoint.x + 10)
    pointsPos.push(extendPoint)
    return pointsPos
 }