fix(StatusScrollBar): Fixed visibilty when policy always on (#878)

Needed for https://github.com/status-im/status-desktop/issues/6262
This commit is contained in:
Alexandra Betouni 2022-09-02 15:49:08 +03:00 committed by Michał Cieślak
parent 5c6fe0983d
commit 25c8eb7b49
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ T.ScrollBar {
contentItem: Rectangle {
color: Theme.palette.primaryColor2
opacity: enabled && (root.hovered || root.active) ? 1.0 : 0.0
opacity: enabled && (root.hovered || root.active || (root.policy === T.ScrollBar.AlwaysOn)) ? 1.0 : 0.0
radius: Math.min(width, height) / 2
Behavior on opacity { NumberAnimation { duration: 100 } }