mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
feat: scroll queue if mouse if not over the area
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user