This repository was archived by the owner on Mar 23, 2026. It is now read-only.
fix(widgets): 主组件的移动速度异常#478
Merged
Merged
Conversation
- 同步小部件与主组件动画 - 浮窗收起到主组件位置并渐隐 - 主组件形变动画
- 修复动画执行时数据更新判定 - 修复主组件位置获取问题
Member
Author
|
实际上浮窗收的速度好像还可以再慢一点的... |
Member
Author
改完了ah动态(( |
- 降低判定条件:可见部分不足50%时再进行调整 - 也算是一种预留开关吧(?
pizeroLOL
pushed a commit
to pizeroLOL/Class-Widgets
that referenced
this pull request
Aug 10, 2025
**问题修复** 1. **边界值处理** - 边距配置`max(0, value)`确保非负值 - 修复窗口位置计算异常 2. **动画状态管理** - 执行动画时跳过数据更新逻辑(`if self.animating: return`) - 优化窗口显示动画时长至400ms --- **功能优化** 1. **动画优化** - 新增`sync_widget_animation`方法实现小部件与主组件动画同步 - 主组件添加形变动画方法`animate_expand` - 加入弹出动画 2. **浮窗收起动画优化** - 浮窗收拢时同步执行渐隐动画 - 动画目标位置改主组件坐标(上半部分);下部:主组件正下方屏幕外 - 动画时长按照屏幕位置自动计算 --- **演示** *修复* https://github.com/user-attachments/assets/93a31c0a-7128-46e5-ac00-28bba240795d ==> https://github.com/user-attachments/assets/7135bbbd-c28d-4f32-b314-a3a97723ad22 *动画* https://github.com/user-attachments/assets/258a15d4-b700-497e-8bf8-cd6e38dff0b2
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
问题修复
max(0, value)确保非负值if self.animating: return)功能优化
动画优化
sync_widget_animation方法实现小部件与主组件动画同步animate_expand浮窗收起动画优化
演示
修复
2025-02-28.222527.mp4
==>
2025-02-28.225833.mp4
动画
output_compressed.mp4