Commit ead060e
committed
fix: improve resetViewState to avoid animation glitches
1. Modified resetViewState function in AppListView.qml and
FreeSortListView.qml
2. Temporarily disable highlightFollowsCurrentItem property during reset
3. Set currentIndex to 0 and contentY to 0 to ensure proper reset
4. Restore original highlightFollowsCurrentItem state after reset
5. This prevents animation glitches when resetting view state
Log: Fixed animation issues when resetting application list view
Influence:
1. Test resetting application list view after search or category
filtering
2. Verify that no animation glitches occur during view reset
3. Check that current selection is properly reset to first item
4. Test with different highlight modes and settings
5. Verify that view position is correctly reset to top
fix: 改进 resetViewState 函数以避免动画闪烁问题
1. 修改 AppListView.qml 和 FreeSortListView.qml 中的 resetViewState 函数
2. 在重置过程中临时禁用 highlightFollowsCurrentItem 属性
3. 将 currentIndex 设置为 0,contentY 设置为 0 以确保正确重置
4. 重置后恢复原始的 highlightFollowsCurrentItem 状态
5. 这可以防止重置视图状态时出现动画闪烁问题
Log: 修复重置应用列表视图时的动画问题
Influence:
1. 测试在搜索或分类筛选后重置应用列表视图
2. 验证在视图重置过程中不会出现动画闪烁
3. 检查当前选择是否正确重置到第一个项目
4. 使用不同的高亮模式和设置进行测试
5. 验证视图位置是否正确重置到顶部
PMS: BUG-3461111 parent 564c3ce commit ead060e
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
0 commit comments