hoverpanel: skip re-open animation when panel is already visible
This commit is contained in:
parent
88a0886681
commit
51a6323b66
1 changed files with 7 additions and 1 deletions
|
|
@ -154,6 +154,12 @@ PanelWindow {
|
|||
return;
|
||||
if (showPanel) {
|
||||
_hideTimer.stop();
|
||||
// Only replay the open animation if the panel is actually closed or
|
||||
// currently animating away. If it is already visible, stopping the
|
||||
// hide timer is sufficient — calling _show() would reset y/opacity to
|
||||
// 0 and cause a visible flash when the cursor crosses the gap between
|
||||
// the bar module and the panel.
|
||||
if (!_winVisible || hideAnim.running)
|
||||
_show();
|
||||
} else {
|
||||
_hideTimer.restart();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue