aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-06-10 11:01:19 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-06-10 11:01:19 -0500
commit4f385b9a0468d7843698d53addb77ded1209a4f6 (patch)
treefce1ad21e1085749adddc05bfb69bb81f3128abf /components
parent2c54787644f261e475848334788e68265c7f2d9e (diff)
parent39d561d9f297f21a6593f59fec897f1a746b0b91 (diff)
downloadmonzero-gui-4f385b9a0468d7843698d53addb77ded1209a4f6.tar.gz
monzero-gui-4f385b9a0468d7843698d53addb77ded1209a4f6.tar.xz
monzero-gui-4f385b9a0468d7843698d53addb77ded1209a4f6.zip
Merge pull request #3533
39d561d DatePicker: support mouse wheel to navigate months (rating89us)
Diffstat (limited to 'components')
-rw-r--r--components/DatePicker.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/DatePicker.qml b/components/DatePicker.qml
index 8dd7347c..27429bf4 100644
--- a/components/DatePicker.qml
+++ b/components/DatePicker.qml
@@ -269,6 +269,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 {