From 029fdaccc0d627cd1f32531fc5485e7de2aa65d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Sun, 23 Dec 2018 20:17:30 +0100 Subject: [PATCH] gal: re-enable scrolbar arrow buttons Fixes: lp:1690780 * https://bugs.launchpad.net/kicad/+bug/1690780 --- common/view/wx_view_controls.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index e354dc302a..889a5f571b 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -90,6 +90,15 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, wxScrolledCanvas* aParentPanel m_parentPanel->Connect( wxEVT_SCROLLWIN_PAGEDOWN, wxScrollWinEventHandler( WX_VIEW_CONTROLS::onScroll ), NULL, this ); + m_parentPanel->Connect( wxEVT_SCROLLWIN_BOTTOM, + wxScrollWinEventHandler( WX_VIEW_CONTROLS::onScroll ), NULL, this ); + m_parentPanel->Connect( wxEVT_SCROLLWIN_TOP, + 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_zoomController = GetZoomControllerForPlatform(); m_panTimer.SetOwner( this );