gate non-essential animations behind reducedMotion config toggle
This commit is contained in:
parent
446edaab9c
commit
ada611d6c5
8 changed files with 43 additions and 12 deletions
|
|
@ -133,7 +133,12 @@ PanelWindow {
|
|||
}
|
||||
_winVisible = true;
|
||||
hideAnim.stop();
|
||||
showAnim.start();
|
||||
if (S.Theme.reducedMotion) {
|
||||
panelContainer.opacity = 1;
|
||||
panelContainer.y = 0;
|
||||
} else {
|
||||
showAnim.start();
|
||||
}
|
||||
_grace = true;
|
||||
_graceTimer.restart();
|
||||
}
|
||||
|
|
@ -141,7 +146,13 @@ PanelWindow {
|
|||
function dismiss() {
|
||||
_pinned = false;
|
||||
showAnim.stop();
|
||||
hideAnim.start();
|
||||
if (S.Theme.reducedMotion) {
|
||||
_winVisible = false;
|
||||
if (popupMode)
|
||||
dismissed();
|
||||
} else {
|
||||
hideAnim.start();
|
||||
}
|
||||
_grace = false;
|
||||
_graceTimer.stop();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue