Browse Source

Merge branch 'feature-tianyong' into klx-test

TIANYONG 1 week ago
parent
commit
246e775cd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/view/selection/index.tsx

+ 1 - 1
src/view/selection/index.tsx

@@ -68,7 +68,7 @@ export default defineComponent({
 					if (item.svgElement) {
 						const noteEle = document.querySelector(`#vf-${item.svgElement?.attrs?.id}`);
 						if (noteEle) {
-							const noteBbox = noteEle.getBoundingClientRect?.() || { x: 0, width: 0 };
+							let noteBbox = noteEle.getBoundingClientRect?.() || { x: 0, width: 0 };
 							if (state.musicRenderType !== EnumMusicRenderType.staff) {
 								noteItem.bbox = {
 									left: noteBbox.x - parentLeft - noteBbox.width / 4 + "px",