mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
chore: Update npm dependencies and package.json files
This commit is contained in:
1 parent
232b8a3e17
commit
1192f18de6
6 files changed
+13
-10
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user