Add flickable on mouse wheel to web pages

This commit is contained in:
vladest 2017-09-06 23:04:58 +02:00
parent 8563a05431
commit 31a23acb1a

View file

@ -19,6 +19,7 @@ Flickable {
signal newViewRequestedCallback(var request)
signal loadingChangedCallback(var loadRequest)
pressDelay: 300
boundsBehavior: Flickable.StopAtBounds
@ -167,4 +168,11 @@ Flickable {
playing: visible
z: 10000
}
MouseArea {
anchors.fill: parent
onWheel: {
flick.flick(0, wheel.angleDelta.y*10)
}
}
}