FIX: scroll direction of DropDown
Change-Id: Id5abf74e099586810ac9a5ec2b43e6050381a3c3
This commit is contained in:
parent
63448d9126
commit
a64fc3918a
|
@ -422,7 +422,7 @@ void DropDown::mouseMove(wxMouseEvent &event)
|
|||
|
||||
void DropDown::mouseWheelMoved(wxMouseEvent &event)
|
||||
{
|
||||
auto delta = (event.GetWheelRotation() < 0 == event.IsWheelInverted()) ? rowSize.y : -rowSize.y;
|
||||
auto delta = event.GetWheelRotation() > 0 ? rowSize.y : -rowSize.y;
|
||||
wxPoint pt2 = offset + wxPoint{0, delta};
|
||||
if (pt2.y > 0)
|
||||
pt2.y = 0;
|
||||
|
|
Loading…
Reference in New Issue