feat(lyric/setting): 新增全局歌词时间轴偏移功能#45
Open
Shomi-FJS wants to merge 1 commit into
Open
Conversation
- 新增全局歌词偏移相关的状态配置到设置存储 - 在设置页面添加全局歌词偏移的完整配置选项 - 在播放器快捷菜单中集成全局歌词偏移的快速调节控件 - 为桌面端与移动端播放器封面添加双击应用全局偏移的交互 - 优化移动端歌词页封面的手势交互避免冲突
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 变更类型
📝 变更说明
改了什么:
settingStore中新增了全局歌词偏移相关的状态(开关、数值、快捷预设符号、双击应用、始终应用等),并在全局设置页面中添加了对应的配置选项。PlayerQuickActionsMenu)中集成了全局歌词偏移的快速调节面板与快捷预设按钮。PlayerCover)及歌词页封面中加入了双击手势逻辑,用于快速开启或临时关闭单曲/全局偏移,并伴有全局的提示消息(Message)。statusStore中的时间轴偏移获取和设置逻辑,将全局偏移与单曲偏移的计算结合在一起。pointerup的双击判断逻辑(通过计算延迟与距离判断isDoubleTap),以避免与移动端歌词页面的原生下拉滑动事件产生冲突。为什么改:
🔗 关联 Issue
Closes #
📱 影响范围
✅ 自检清单
devpnpm lint且无 warningpnpm typecheck且无报错🧪 测试方式