summaryrefslogtreecommitdiff
path: root/src/controls/ScrollView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/ScrollView.qml')
-rw-r--r--src/controls/ScrollView.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/controls/ScrollView.qml b/src/controls/ScrollView.qml
index 951fe65e..f79cfc8e 100644
--- a/src/controls/ScrollView.qml
+++ b/src/controls/ScrollView.qml
@@ -244,13 +244,13 @@ FocusScope {
Connections {
target: flickableItem
- onContentYChanged: {
+ function onContentYChanged() {
scroller.blockUpdates = true
scroller.verticalScrollBar.value = flickableItem.contentY - flickableItem.originY
scroller.blockUpdates = false
}
- onContentXChanged: {
+ function onContentXChanged() {
scroller.blockUpdates = true
scroller.horizontalScrollBar.value = flickableItem.contentX - flickableItem.originX
scroller.blockUpdates = false
@@ -309,12 +309,12 @@ FocusScope {
Connections {
target: flickableItem
- onContentYChanged: {
+ function onContentYChanged() {
wheelArea.verticalRecursionGuard = true
wheelArea.verticalValue = flickableItem.contentY - flickableItem.originY
wheelArea.verticalRecursionGuard = false
}
- onContentXChanged: {
+ function onContentXChanged() {
wheelArea.horizontalRecursionGuard = true
wheelArea.horizontalValue = flickableItem.contentX - flickableItem.originX
wheelArea.horizontalRecursionGuard = false