fixed animation halt

This commit is contained in:
liyunze 2023-08-29 21:58:42 +08:00
parent 99744e019c
commit 740230840c

View file

@ -838,7 +838,7 @@ async function checkToAnimate() {
let taskWrapperHeight = taskWrapper.clientHeight;
// scroll task wrapper up and down once
if (taskContainerHeight > taskWrapperHeight) {
if (taskContainerHeight > taskWrapperHeight && !scrolling) {
if (!scrolling) {
document.querySelector(".secondary").style.display = "flex";