|
@@ -1140,17 +1140,18 @@ export const scrollViewNote = (resetTop?: boolean) => {
|
|
|
}
|
|
|
// offsetTop = noteCenterOffsetTop;
|
|
|
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,
|
|
|
});
|
|
|
}
|
|
|
};
|