From 0e69277074137dfc6c2d1cf693a28848ae1a4ace Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sat, 31 May 2014 11:48:27 +0200 Subject: [PATCH] Fix for vertical/horizontal (using Ctrl/Shift + mousewheel) panning in GAL canvas. --- common/view/wx_view_controls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index acd88316fa..5dc14ca1cf 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -134,8 +134,8 @@ void WX_VIEW_CONTROLS::onWheel( wxMouseEvent& aEvent ) if( aEvent.ControlDown() || aEvent.ShiftDown() ) { // Scrolling - VECTOR2D scrollVec = m_view->ToWorld( m_view->GetScreenPixelSize() * - ( (double) aEvent.GetWheelRotation() * wheelPanSpeed ), false ); + VECTOR2D scrollVec = m_view->ToWorld( m_view->GetScreenPixelSize(), false ) * + ( (double) aEvent.GetWheelRotation() * wheelPanSpeed ); double scrollSpeed; if( abs( scrollVec.x ) > abs( scrollVec.y ) )