chore: Update npm dependencies and package.json files

This commit is contained in:
Harvey Zack committed 2024-06-08 12:25:05 +08:00
1 parent 232b8a3e17
commit 1192f18de6
6 files changed
+13 -10

No files matched your search

+5 -3
View File
@@ -36,8 +36,10 @@ export default function thumbnails(options) {
}
}
art.on('setBar', async (type, percentage) => {
if (type === 'hover' || (type === 'played' && isMobile)) {
art.on('setBar', async (type, percentage, event) => {
const isMobileDroging = type === 'played' && event && isMobile;
if (type === 'hover' || isMobileDroging) {
if (!loading) {
loading = true;
image = await loadImg(option.thumbnails.url);
@@ -57,7 +59,7 @@ export default function thumbnails(options) {
}
}
if (isMobile) {
if (isMobileDroging) {
clearTimeout(timer);
timer = setTimeout(() => {
setStyle($control, 'display', 'none');