feat: scroll queue if mouse if not over the area

This commit is contained in:
geoffrey45
2022-06-11 11:12:47 +03:00
parent 191ac0bc7b
commit 188834de3b
4 changed files with 20 additions and 9 deletions
+1 -2
View File
@@ -14,7 +14,6 @@ const putCommas = (artists: string[]) => {
function focusElem(className: string, delay?: number) {
const dom = document.getElementsByClassName(className)[0];
if (!delay) delay = 300;
setTimeout(() => {
if (dom) {
@@ -24,7 +23,7 @@ function focusElem(className: string, delay?: number) {
inline: "center",
});
}
}, delay);
}, delay | 300);
}
function getElem(id: string, type: string) {