mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:58:09 +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 columnIndex: 0
|
||||||
property int count: 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
|
// used to look up a button by its uuid
|
||||||
function findButtonIndex(uuid) {
|
function findButtonIndex(uuid) {
|
||||||
if (!uuid) {
|
if (!uuid) {
|
||||||
|
@ -209,6 +212,11 @@ Item {
|
||||||
rightMargin: 30
|
rightMargin: 30
|
||||||
bottomMargin: 0
|
bottomMargin: 0
|
||||||
}
|
}
|
||||||
|
Component.onCompleted: {
|
||||||
|
if (contentItem !== null) {
|
||||||
|
contentItem.pressDelay = tablet.pressDelayTime
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PageIndicator {
|
PageIndicator {
|
||||||
|
@ -234,6 +242,7 @@ Item {
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
enabled: false //disabled by default
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (index !== swipeView.currentIndex) {
|
if (index !== swipeView.currentIndex) {
|
||||||
swipeView.currentIndex = index
|
swipeView.currentIndex = index
|
||||||
|
|
Loading…
Reference in a new issue