Forráskód Böngészése

feat: scrollTo滚动top值修改

TIANYONG 3 hónapja
szülő
commit
a03ffe6918
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/state.ts

+ 1 - 1
src/state.ts

@@ -1218,7 +1218,7 @@ export const scrollViewNote = (resetTop?: boolean) => {
   if (offsetTop > (state.headTopHeight + 30)) {
     musicScrollTop = (offsetTop - state.headTopHeight - 30) * state.musicZoom
     musicAndSelection.scrollTo({
-      top: (offsetTop - state.headTopHeight - 30) * state.musicZoom,
+      top: (offsetTop - state.headTopHeight - 100) * state.musicZoom,
       behavior: animateType,
     });
   } else {