Преглед на файлове

feat: ios18,选段样式问题修复

TIANYONG преди 7 месеца
родител
ревизия
08df4d996b
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      src/state.ts

+ 8 - 0
src/state.ts

@@ -1210,6 +1210,14 @@ export const handleChangeSection = () => {
     resetBaseRate(state.activeNoteIndex);
     //skipNotePlay(0, true);  取消选段的时候 不跳回开头
     state.sectionFirst = null;
+    // IOS18.1.1浏览器渲染更新有问题,需要手动更新一下
+    const selectionDom = document.getElementById('selectionBox')
+    if (selectionDom) {
+      selectionDom.style.display = 'none';
+      requestAnimationFrame(() => {
+        selectionDom.style.display = 'block';
+      })
+    }
     return;
   }
   state.sectionStatus = true;