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
|
|
@ -19,10 +19,19 @@ PanelWindow {
|
|||
if (_shown) {
|
||||
_winVisible = true;
|
||||
hideAnim.stop();
|
||||
showAnim.start();
|
||||
if (S.Theme.reducedMotion) {
|
||||
content.opacity = 1;
|
||||
content.y = 0;
|
||||
} else {
|
||||
showAnim.start();
|
||||
}
|
||||
} else {
|
||||
showAnim.stop();
|
||||
hideAnim.start();
|
||||
if (S.Theme.reducedMotion) {
|
||||
_winVisible = false;
|
||||
} else {
|
||||
hideAnim.start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue