diff options
Diffstat (limited to 'desktop/Page.qml')
| -rw-r--r-- | desktop/Page.qml | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/desktop/Page.qml b/desktop/Page.qml index 02b2da8..e02db7e 100644 --- a/desktop/Page.qml +++ b/desktop/Page.qml @@ -138,12 +138,6 @@ Item { anchors.topMargin: 12 clip: true contentWidth: availableWidth - // Faster wheel scrolling than Qt's defaults (2500, 1500); the - // sidebar and the landing page in Settings.qml use the same pair. - Component.onCompleted: { - scroll.contentItem.maximumFlickVelocity = 8000; - scroll.contentItem.flickDeceleration = 4000; - } // Page Up/Down, Home/End scroll the page. Reached when the page // itself has focus (a click on empty space, below) or bubbling up @@ -167,13 +161,16 @@ Item { } } - // A click on empty page space focuses the page, for the keys above. - // Beneath the content, so fields and buttons keep their clicks; it takes - // no wheel (no onWheel) and the Flickable still steals drags from it. - MouseArea { + // A click on empty page space focuses the page, for the keys above, + // and the wheel scrolls it. Beneath the content, so fields and buttons + // keep their clicks and an inner slider or list keeps its wheel; the + // Flickable still steals drags from it. + WheelScroll { parent: holder z: -1 anchors.fill: parent + flick: scroll.contentItem + acceptedButtons: Qt.LeftButton onPressed: scroll.forceActiveFocus() } |
