pcbnew GAL: Fix bouncing zoom on mouse wheel scroll in Windows
Handling wxEVT_SCROLLWIN_LINE{UP,DOWN} executes the scroll event handler too many times causing zoom bounces. Fixes: lp:1562173 * https://bugs.launchpad.net/kicad/+bug/1562173
This commit is contained in:
parent
147c1e6088
commit
44337dec56
|
@ -71,10 +71,6 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, wxScrolledCanvas* aParentPanel
|
||||||
wxScrollWinEventHandler( WX_VIEW_CONTROLS::onScroll ), NULL, this );
|
wxScrollWinEventHandler( WX_VIEW_CONTROLS::onScroll ), NULL, this );
|
||||||
m_parentPanel->Connect( wxEVT_SCROLLWIN_PAGEDOWN,
|
m_parentPanel->Connect( wxEVT_SCROLLWIN_PAGEDOWN,
|
||||||
wxScrollWinEventHandler( WX_VIEW_CONTROLS::onScroll ), NULL, this );
|
wxScrollWinEventHandler( WX_VIEW_CONTROLS::onScroll ), NULL, this );
|
||||||
m_parentPanel->Connect( wxEVT_SCROLLWIN_LINEUP,
|
|
||||||
wxScrollWinEventHandler( WX_VIEW_CONTROLS::onScroll ), NULL, this );
|
|
||||||
m_parentPanel->Connect( wxEVT_SCROLLWIN_LINEDOWN,
|
|
||||||
wxScrollWinEventHandler( WX_VIEW_CONTROLS::onScroll ), NULL, this );
|
|
||||||
|
|
||||||
m_panTimer.SetOwner( this );
|
m_panTimer.SetOwner( this );
|
||||||
this->Connect( wxEVT_TIMER,
|
this->Connect( wxEVT_TIMER,
|
||||||
|
|
Loading…
Reference in New Issue