diff --git a/src/fish-style/ScrollBar.qml b/src/fish-style/ScrollBar.qml index 5580560..b0b676a 100644 --- a/src/fish-style/ScrollBar.qml +++ b/src/fish-style/ScrollBar.qml @@ -11,10 +11,16 @@ T.ScrollBar { implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, implicitContentHeight + topPadding + bottomPadding) + hoverEnabled: true padding: control.interactive ? 1 : 2 visible: control.policy !== T.ScrollBar.AlwaysOff minimumSize: orientation == Qt.Horizontal ? height / width : width / height + onHoveredChanged: { + if (hovered) + control.active = true + } + contentItem: Rectangle { radius: FishUI.Theme.smallRadius implicitWidth: control.interactive ? 6 : 4 @@ -39,7 +45,7 @@ T.ScrollBar { from: "active" SequentialAnimation { PropertyAction{ target: control.contentItem; property: "opacity"; value: 1.0 } - PauseAnimation { duration: 2450 } + PauseAnimation { duration: 1000 } NumberAnimation { target: control.contentItem; property: "opacity"; to: 0.0 } } }