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,7 +154,13 @@ PanelWindow {
|
||||||
return;
|
return;
|
||||||
if (showPanel) {
|
if (showPanel) {
|
||||||
_hideTimer.stop();
|
_hideTimer.stop();
|
||||||
_show();
|
// 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 {
|
} else {
|
||||||
_hideTimer.restart();
|
_hideTimer.restart();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue