Просмотр исходного кода

feat: 滑音点击区域待修改

TIANYONG 3 месяцев назад
Родитель
Сommit
e47113299e
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/view/selection/index.tsx

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

@@ -81,11 +81,11 @@ const calcNoteData = () => {
 					} else {
 						// 判断是否是滑音,滑音的宽度很大,会覆盖掉前面的音符区域,导致无法点击选中前一个音符,需要缩小滑音的点击区域
 						let vibratoReduceX = 0;
-						if (noteEle?.querySelector('.vf-vibrato')) {
-							vibratoReduceX = 50;
-						} else {
-							vibratoReduceX = 0;
-						}
+						// if (noteEle?.querySelector('.vf-vibrato')) {
+						// 	vibratoReduceX = 50;
+						// } else {
+						// 	vibratoReduceX = 0;
+						// }
 						const needTransY = -(staveBbox.height - customBgBox.height) / 2 + "px";
 						noteItem.bbox = {
 							left: noteBbox.x - parentLeft - noteBbox.width / 4 + vibratoReduceX + "px",