From 44337dec5687aa7c6d03731f5a9e1ab553c58108 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 20 Jun 2018 16:54:38 +0200 Subject: [PATCH] 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 --- common/view/wx_view_controls.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index c09200294a..e94088c4a9 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -71,10 +71,6 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, wxScrolledCanvas* aParentPanel wxScrollWinEventHandler( WX_VIEW_CONTROLS::onScroll ), NULL, this ); m_parentPanel->Connect( wxEVT_SCROLLWIN_PAGEDOWN, 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 ); this->Connect( wxEVT_TIMER,