summaryrefslogtreecommitdiffstats
path: root/examples/declarative/scrollbar/display.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/scrollbar/display.qml')
-rw-r--r--examples/declarative/scrollbar/display.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/scrollbar/display.qml b/examples/declarative/scrollbar/display.qml
index b8a5e36..6b12d85 100644
--- a/examples/declarative/scrollbar/display.qml
+++ b/examples/declarative/scrollbar/display.qml
@@ -20,7 +20,7 @@ Rectangle {
// Only show the scrollbars when the view is moving.
states: State {
name: "ShowBars"
- when: view.moving
+ when: view.movingVertically || view.movingHorizontally
PropertyChanges { target: verticalScrollBar; opacity: 1 }
PropertyChanges { target: horizontalScrollBar; opacity: 1 }
}