Browse Source

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

TIANYONG 3 months ago
parent
commit
08df4d996b
1 changed files with 8 additions and 0 deletions
  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;