mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 12:05:54 +08:00
Create a mouse area around the sidebar to avoid propagating mouse wheel events.
Contributes to CURA-4495
This commit is contained in:
parent
feb3143874
commit
ae57e23eec
@ -476,6 +476,14 @@ UM.MainWindow
|
|||||||
collapseSidebarAnimation.start();
|
collapseSidebarAnimation.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseArea
|
||||||
|
{
|
||||||
|
visible: UM.Controller.activeStage.sidebarComponent != ""
|
||||||
|
anchors.fill: parent
|
||||||
|
acceptedButtons: Qt.AllButtons
|
||||||
|
onWheel: wheel.accepted = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.MessageStack
|
UM.MessageStack
|
||||||
|
@ -142,7 +142,7 @@ Item
|
|||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
id: filter;
|
id: filter;
|
||||||
|
height: parent.height
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: clearFilterButton.left
|
anchors.right: clearFilterButton.left
|
||||||
anchors.rightMargin: Math.round(UM.Theme.getSize("sidebar_margin").width)
|
anchors.rightMargin: Math.round(UM.Theme.getSize("sidebar_margin").width)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user