liushengqiang преди 1 година
родител
ревизия
8bbfea1b8e
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 0
      src/page-instrument/view-figner/index.module.less
  2. 0 1
      src/page-instrument/view-figner/index.tsx

+ 3 - 0
src/page-instrument/view-figner/index.module.less

@@ -237,6 +237,7 @@
 }
 
 .fingeringContainer {
+    position: relative;
     width: 100%;
     height: 100%;
     display: flex;
@@ -264,6 +265,8 @@
 
 .tizhi {
     position: absolute;
+    top: 20%;
+    right: 20%;
     width: 30px;
     height: 30px;
     text-align: center;

+ 0 - 1
src/page-instrument/view-figner/index.tsx

@@ -183,7 +183,6 @@ export default defineComponent({
 											onMouseleave={() => noteClick(note, "stop")}
 											onTouchstart={() => noteClick(note, "start")}
 											onTouchend={() => noteClick(note, "stop")}
-											onTouchcancel={() => noteClick(note, "stop")}
 										>
 											{data.realKey === note.realKey ? (
 												<img draggable={false} src={icons.icon_btn_ylow} />