scroll indicator non interactive

This commit is contained in:
Marco Martin 2015-06-10 21:27:53 -07:00
parent 12c856213c
commit 9f15697a76
2 changed files with 2 additions and 16 deletions

View file

@ -32,4 +32,4 @@ export GRID_UNIT_PX=30
/usr/bin/kded5&
/usr/bin/voicecall-manager&
/usr/bin/plasmaphonedialer -d&
exec /usr/bin/plasmashell -p org.kde.satellite.phone
exec /usr/bin/plasmashell -p org.kde.satellite.phone 2>/tmp/plasmashell_logs

View file

@ -559,27 +559,13 @@ MouseEventListener {
radius: width
anchors.right: parent.right
y: applicationsView.height * applicationsView.visibleArea.yPosition
opacity: scrollbarMouse.pressed || applicationsView.flicking || scrollDownIndicator.opacity > 0 || scrollUpIndicator.opacity > 0 ? 0.8 : 0
opacity: applicationsView.flicking || scrollDownIndicator.opacity > 0 || scrollUpIndicator.opacity > 0 ? 0.8 : 0
Behavior on opacity {
NumberAnimation {
duration: units.longDuration
easing.type: Easing.InOutQuad
}
}
MouseArea {
id: scrollbarMouse
anchors {
fill: parent
margins: -units.gridUnit
}
drag.target: parent
onPositionChanged: {
applicationsView.contentY = applicationsView.contentHeight * (parent.y / applicationsView.height) - applicationsView.headerItem.height
}
onReleased: {
applicationsView.returnToBounds()
}
}
}
}
}