mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 17:39:02 +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();
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea
|
||||
{
|
||||
visible: UM.Controller.activeStage.sidebarComponent != ""
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.AllButtons
|
||||
onWheel: wheel.accepted = true
|
||||
}
|
||||
}
|
||||
|
||||
UM.MessageStack
|
||||
|
@ -142,7 +142,7 @@ Item
|
||||
TextField
|
||||
{
|
||||
id: filter;
|
||||
|
||||
height: parent.height
|
||||
anchors.left: parent.left
|
||||
anchors.right: clearFilterButton.left
|
||||
anchors.rightMargin: Math.round(UM.Theme.getSize("sidebar_margin").width)
|
||||
|
Loading…
x
Reference in New Issue
Block a user