Commit ed9fd77
committed
fix(tray): pre-create stashed popup to eliminate first-open lag
Pre-create the stashed tray popup during initialization to avoid lag
when first opening it, especially noticeable at high DPI scales (225%).
The popup is opened with zero opacity during startup and closed after
200ms, ensuring all components are fully initialized. This eliminates
the frame drops and stuttering that occurred when hovering over or
clicking the application tray button for the first time.
修复系统托盘折叠弹窗首次打开时的卡顿问题。在初始化时预创建弹窗,
通过设置透明度为0在后台完成组件初始化和渲染,避免首次打开时的
帧率下降和卡顿,特别是在高DPI缩放(225%)下的表现。
PMS: BUG-3447051 parent 1127204 commit ed9fd77
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
82 | 91 | | |
83 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
84 | 104 | | |
85 | 105 | | |
86 | 106 | | |
| |||
0 commit comments