liushengqiang 2 년 전
부모
커밋
48c9a6f056
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/state.ts

+ 2 - 1
src/state.ts

@@ -349,7 +349,8 @@ const setCursorPosition = (note: any, cursor: any) => {
 		nextTick(() => {
 			const bbox = note.bbox;
 			if (!bbox) return;
-			const width = (bbox.width - 18) / 3;
+			const baseW = state.platform === IPlatform.PC ? 29 : 18;
+			const width = (bbox.width - baseW) / 3;
 			cursor.cursorElement.style.left = bbox.left + "px";
 			cursor.cursorElement.style.transform = `translateX(${width}px)`;
 		});