mirror of
https://github.com/overte-org/overte.git
synced 2025-08-03 23:43:30 +02:00
Make page indicators non clickable. Attempt to enable swipe even over buttons
This commit is contained in:
parent
215e64d702
commit
659afcc43b
1 changed files with 9 additions and 0 deletions
|
@ -13,6 +13,9 @@ Item {
|
|||
property int columnIndex: 0
|
||||
property int count: 0
|
||||
|
||||
//timeout for press delay before swipe occurs
|
||||
readonly property int pressDelayTime: 50
|
||||
|
||||
// used to look up a button by its uuid
|
||||
function findButtonIndex(uuid) {
|
||||
if (!uuid) {
|
||||
|
@ -209,6 +212,11 @@ Item {
|
|||
rightMargin: 30
|
||||
bottomMargin: 0
|
||||
}
|
||||
Component.onCompleted: {
|
||||
if (contentItem !== null) {
|
||||
contentItem.pressDelay = tablet.pressDelayTime
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PageIndicator {
|
||||
|
@ -234,6 +242,7 @@ Item {
|
|||
}
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
enabled: false //disabled by default
|
||||
onClicked: {
|
||||
if (index !== swipeView.currentIndex) {
|
||||
swipeView.currentIndex = index
|
||||
|
|
Loading…
Reference in a new issue