Merge pull request #11317 from vladest/fix_flickable_on_wheel

Add flickable on mouse wheel to web pages
This commit is contained in:
Andrew Meadows 2017-09-11 09:32:31 -07:00 committed by GitHub
commit a9feca18ca

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