mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX: scroll offset with touch pad
Change-Id: I7dbec590f39f174c02e4179fd781ff7fd1a93374
This commit is contained in:
parent
fee419797d
commit
3b3ad1b390
4 changed files with 15 additions and 11 deletions
|
@ -432,7 +432,7 @@ void DropDown::mouseMove(wxMouseEvent &event)
|
|||
|
||||
void DropDown::mouseWheelMoved(wxMouseEvent &event)
|
||||
{
|
||||
auto delta = event.GetWheelRotation() > 0 ? rowSize.y : -rowSize.y;
|
||||
auto delta = event.GetWheelRotation();
|
||||
wxPoint pt2 = offset + wxPoint{0, delta};
|
||||
if (pt2.y > 0)
|
||||
pt2.y = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue