1
0

qml: small fixes, cleanup

This commit is contained in:
Sander van Grieken
2022-08-24 12:38:25 +02:00
parent c37e202e44
commit dea30f96a1
5 changed files with 13 additions and 14 deletions

View File

@@ -84,7 +84,7 @@ Pane {
height: postext.height + constants.paddingXXLarge
radius: constants.paddingXSmall
color: constants._alpha(Material.accentColor, 0.33)
color: constants.colorAlpha(Material.accentColor, 0.33)
border.color: Material.accentColor
opacity : vdragscroll.drag.active ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 300 } }
@@ -92,8 +92,8 @@ Pane {
onYChanged: {
if (vdragscroll.drag.active) {
listview.contentY =
Math.min(listview.contentHeight - listview.height + listview.originY,
Math.max(listview.originY,
Math.min(listview.contentHeight - listview.height + listview.originY,
(y/vdragscroll.height) * listview.contentHeight))
}
}