mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 10:23:59 +02:00
Add flickable on mouse wheel to web pages
This commit is contained in:
parent
8563a05431
commit
31a23acb1a
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,7 @@ Flickable {
|
||||||
|
|
||||||
signal newViewRequestedCallback(var request)
|
signal newViewRequestedCallback(var request)
|
||||||
signal loadingChangedCallback(var loadRequest)
|
signal loadingChangedCallback(var loadRequest)
|
||||||
|
pressDelay: 300
|
||||||
|
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
|
|
||||||
|
@ -167,4 +168,11 @@ Flickable {
|
||||||
playing: visible
|
playing: visible
|
||||||
z: 10000
|
z: 10000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onWheel: {
|
||||||
|
flick.flick(0, wheel.angleDelta.y*10)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue