mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 04:27:25 -04:00
DatePicker: support mouse wheel to navigate months
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user