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 GitHub
parent 5e7a0d8251
commit e146ccaed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ T.ScrollBar {
contentItem: Rectangle { contentItem: Rectangle {
color: Theme.palette.primaryColor2 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 radius: Math.min(width, height) / 2
Behavior on opacity { NumberAnimation { duration: 100 } } Behavior on opacity { NumberAnimation { duration: 100 } }