|
@@ -1207,17 +1207,18 @@ export const scrollViewNote = (resetTop?: boolean) => {
|
|
|
if (offsetTop === cursorElement.offsetTop || Math.abs(offsetTop - cursorElement.offsetTop) < 30) return;
|
|
|
}
|
|
|
offsetTop = cursorElement.offsetTop;
|
|
|
+ const animateType = browser().android ? "instant" : "smooth"
|
|
|
if (offsetTop > (state.headTopHeight + 30)) {
|
|
|
musicScrollTop = (offsetTop - state.headTopHeight - 30) * state.musicZoom
|
|
|
musicAndSelection.scrollTo({
|
|
|
top: (offsetTop - state.headTopHeight - 30) * state.musicZoom,
|
|
|
- behavior: "smooth",
|
|
|
+ behavior: animateType,
|
|
|
});
|
|
|
} else {
|
|
|
musicScrollTop = 0
|
|
|
musicAndSelection.scrollTo({
|
|
|
top: 0,
|
|
|
- behavior: "smooth",
|
|
|
+ behavior: animateType,
|
|
|
});
|
|
|
}
|
|
|
};
|