From 39d561d9f297f21a6593f59fec897f1a746b0b91 Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Sun, 6 Jun 2021 21:04:04 +0200 Subject: [PATCH] DatePicker: support mouse wheel to navigate months --- components/DatePicker.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/DatePicker.qml b/components/DatePicker.qml index 8a79b2e8..15164af5 100644 --- a/components/DatePicker.qml +++ b/components/DatePicker.qml @@ -271,6 +271,11 @@ Item { MouseArea { anchors.fill: parent + scrollGestureEnabled: false + onWheel: { + if (wheel.angleDelta.y > 0) return calendar.showPreviousMonth(); + if (wheel.angleDelta.y < 0) return calendar.showNextMonth(); + } } Rectangle {