From d3d26f28921df31cf1fd39e0bd067e6178fdd904 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 29 Nov 2020 17:46:07 +0100 Subject: [PATCH] Update the zoom level as soon as it is modified by the mouse wheel The zoom level displayed on the bottom of the canvas was not immediately displayed, only after a mouse move. Fixes #6542 https://gitlab.com/kicad/code/kicad/issues/6542 --- common/view/wx_view_controls.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index 13d47ccecc..3217588f3c 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -253,6 +253,10 @@ void WX_VIEW_CONTROLS::onWheel( wxMouseEvent& aEvent ) const VECTOR2D anchor = m_view->ToWorld( VECTOR2D( aEvent.GetX(), aEvent.GetY() ) ); m_view->SetScale( m_view->GetScale() * zoomScale, anchor ); } + + // Refresh the zoom level and mouse position on message panel + // (mouse position has not changed, only the zoom level has changed): + refreshMouse(); } else {