mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51: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
@@ -3427,8 +3427,9 @@ function thumbnails(options) {
|
||||
else if (posWidth > $progress.clientWidth - width2 / 2) (0, _utils.setStyle)($control, "left", `${$progress.clientWidth - width2}px`);
|
||||
else (0, _utils.setStyle)($control, "left", `${posWidth - width2 / 2}px`);
|
||||
}
|
||||
art.on("setBar", async (type, percentage)=>{
|
||||
if (type === "hover" || type === "played" && (0, _utils.isMobile)) {
|
||||
art.on("setBar", async (type, percentage, event)=>{
|
||||
const isMobileDroging = type === "played" && event && (0, _utils.isMobile);
|
||||
if (type === "hover" || isMobileDroging) {
|
||||
if (!loading) {
|
||||
loading = true;
|
||||
image = await loadImg(option.thumbnails.url);
|
||||
@@ -3439,7 +3440,7 @@ function thumbnails(options) {
|
||||
(0, _utils.setStyle)($control, "display", "flex");
|
||||
if (width > 0 && width < $progress.clientWidth) showThumbnails(width);
|
||||
else if (!(0, _utils.isMobile)) (0, _utils.setStyle)($control, "display", "none");
|
||||
if (0, _utils.isMobile) {
|
||||
if (isMobileDroging) {
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(()=>{
|
||||
(0, _utils.setStyle)($control, "display", "none");
|
||||
|
||||
Reference in new issue
Block a user