diff --git a/common/dialogs/panel_mouse_settings.cpp b/common/dialogs/panel_mouse_settings.cpp index 1e93e37060..5036f4db77 100644 --- a/common/dialogs/panel_mouse_settings.cpp +++ b/common/dialogs/panel_mouse_settings.cpp @@ -30,7 +30,8 @@ using KIGFX::MOUSE_DRAG_ACTION; PANEL_MOUSE_SETTINGS::PANEL_MOUSE_SETTINGS( DIALOG_SHIM* aDialog, wxWindow* aParent ) : PANEL_MOUSE_SETTINGS_BASE( aParent ), - m_dialog( aDialog ) + m_dialog( aDialog ), + m_currentScrollMod( {} ) { m_checkAutoZoomSpeed->Bind( wxEVT_COMMAND_CHECKBOX_CLICKED, [&]( wxCommandEvent& aEvt ) diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index e5e19f848a..ca9e99d498 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -63,6 +63,7 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, wxScrolledCanvas* aParentPanel m_state( IDLE ), m_parentPanel( aParentPanel ), m_scrollScale( 1.0, 1.0 ), + m_initialZoomScale( 0.0 ), #ifdef __WXGTK3__ m_lastTimestamp( 0 ), #endif