mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-19 16:13:55 +02:00
DatePicker: support mouse wheel to navigate months
This commit is contained in:
parent
2946127ed7
commit
39d561d9f2
@ -271,6 +271,11 @@ Item {
|
|||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
scrollGestureEnabled: false
|
||||||
|
onWheel: {
|
||||||
|
if (wheel.angleDelta.y > 0) return calendar.showPreviousMonth();
|
||||||
|
if (wheel.angleDelta.y < 0) return calendar.showNextMonth();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
Loading…
Reference in New Issue
Block a user