Use AutoListView.

Fixes #84.
This commit is contained in:
Black Hat
2018-10-15 09:56:30 +08:00
parent 3d104ddccc
commit 1c3fcef542
11 changed files with 18 additions and 23 deletions

View File

@@ -0,0 +1,9 @@
import QtQuick 2.9
ListView {
ScrollHelper {
anchors.fill: parent
flickable: parent
}
}

View File

@@ -13,7 +13,6 @@ MouseArea {
flickable.interactive = false
flickable.maximumFlickVelocity = 100000
flickable.boundsBehavior = Flickable.StopAtBounds
root.parent = flickable
}
function scrollByPixelDelta(flickableItem, pixelDelta) {

View File

@@ -6,3 +6,4 @@ AutoImage 2.0 AutoImage.qml
AutoLabel 2.0 AutoLabel.qml
AutoTextArea 2.0 AutoTextArea.qml
ScrollHelper 2.0 ScrollHelper.qml
AutoListView 2.0 AutoListView.qml