From 740230840c38f8a97f8b83b37d95c4958a8d946c Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Tue, 29 Aug 2023 21:58:42 +0800 Subject: [PATCH] fixed animation halt --- scripts/taskList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/taskList.js b/scripts/taskList.js index 1a9ab82..ea567fc 100644 --- a/scripts/taskList.js +++ b/scripts/taskList.js @@ -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";