Fix incorrect onScroll handler on GAL mode.

If a Scroll event is skipped, a default handler is fired by wxWidgets.
This default default handler fires 3 wxEVT_SCROLLWIN_LINEUP or wxEVT_SCROLLWIN_LINEDOWN events.

This is not wanted now in eeschema (and pcbnew) because they add extra (unwanted) scrolling.

Fixes: lp:1810403
https://bugs.launchpad.net/kicad/+bug/1810403
This commit is contained in:
jean-pierre charras 2019-01-04 13:10:34 +01:00
parent db7dba96ad
commit 56e0031e03
1 changed files with 4 additions and 1 deletions

View File

@ -213,7 +213,10 @@ void WX_VIEW_CONTROLS::onWheel( wxMouseEvent& aEvent )
} }
} }
aEvent.Skip(); // Do not skip this event, otherwise wxWidgets will fire
// 3 wxEVT_SCROLLWIN_LINEUP or wxEVT_SCROLLWIN_LINEDOWN (normal wxWidgets behavior)
// and we do not want that.
m_parentPanel->Refresh();
} }