mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 17:56:03 +08:00
ComboBox: Fix for scrolling over a dropdown.
It doesn't need to propagate the MouseWhile event to the parent.
This commit is contained in:
parent
b0673265eb
commit
00a08831a7
@ -294,7 +294,6 @@ void ComboBox::mouseDown(wxMouseEvent &event)
|
|||||||
|
|
||||||
void ComboBox::mouseWheelMoved(wxMouseEvent &event)
|
void ComboBox::mouseWheelMoved(wxMouseEvent &event)
|
||||||
{
|
{
|
||||||
event.Skip();
|
|
||||||
if (drop_down) return;
|
if (drop_down) return;
|
||||||
auto delta = ((event.GetWheelRotation() < 0) == event.IsWheelInverted()) ? -1 : 1;
|
auto delta = ((event.GetWheelRotation() < 0) == event.IsWheelInverted()) ? -1 : 1;
|
||||||
unsigned int n = GetSelection() + delta;
|
unsigned int n = GetSelection() + delta;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user