Mouse shows scrollbar

pull/19/head
reionwong 4 years ago
parent 0dbbc85fca
commit 46adf20371

@ -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 }
}
}

Loading…
Cancel
Save