[PR #706] [MERGED] feat(playBackground): 支持暂停时暂停背景动画 #596

Closed
opened 2026-02-27 07:12:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imsyy/SPlayer/pull/706
Author: @MoYingJi
Created: 1/1/2026
Status: Merged
Merged: 1/3/2026
Merged by: @imsyy

Base: devHead: pr/b


📝 Commits (1)

  • e2e54ea feat(playBackground): 支持暂停时暂停背景动画

📊 Changes

5 files changed (+25 additions, -5 deletions)

View changed files

📝 src/components/Player/PlayerBackground.vue (+8 -2)
📝 src/components/Player/PlayerControl.vue (+1 -2)
📝 src/components/Setting/PlaySetting.vue (+7 -0)
📝 src/components/Special/BackgroundRender.vue (+6 -1)
📝 src/stores/setting.ts (+3 -0)

📄 Description

通过设置 flowSpeed0 来暂停动画,这样貌似没什么问题

除此之外,还优化了一些样式和问题
BackgroundRenderdispose 设置了 500ms 的延迟以修复点击关闭按钮后背景立即消失的问题 删掉了 PlayerControl 里一些地方的 cursor: pointer;


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imsyy/SPlayer/pull/706 **Author:** [@MoYingJi](https://github.com/MoYingJi) **Created:** 1/1/2026 **Status:** ✅ Merged **Merged:** 1/3/2026 **Merged by:** [@imsyy](https://github.com/imsyy) **Base:** `dev` ← **Head:** `pr/b` --- ### 📝 Commits (1) - [`e2e54ea`](https://github.com/imsyy/SPlayer/commit/e2e54eaf25e3ed80d7199ab91f51fd16a9a8e0aa) feat(playBackground): 支持暂停时暂停背景动画 ### 📊 Changes **5 files changed** (+25 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/components/Player/PlayerBackground.vue` (+8 -2) 📝 `src/components/Player/PlayerControl.vue` (+1 -2) 📝 `src/components/Setting/PlaySetting.vue` (+7 -0) 📝 `src/components/Special/BackgroundRender.vue` (+6 -1) 📝 `src/stores/setting.ts` (+3 -0) </details> ### 📄 Description 通过设置 `flowSpeed` 为 `0` 来暂停动画,这样貌似没什么问题 除此之外,还优化了一些样式和问题 为 `BackgroundRender` 的 `dispose` 设置了 500ms 的延迟以修复点击关闭按钮后背景立即消失的问题 删掉了 `PlayerControl` 里一些地方的 `cursor: pointer;` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:12:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SPlayer#596
No description provided.