Fix: 3D footprint preview does not zoom using mouse wheel (Windows specific)
This was due to clicking on the preview canvas does dot give the focus to the canvas on Windows. Now the focus is set when clicking on this canvas. Fixes: lp:1794090 https://bugs.launchpad.net/kicad/+bug/1794090
This commit is contained in:
parent
915d2ed374
commit
dbc9130da9
|
@ -508,6 +508,8 @@ void EDA_3D_CANVAS::OnMouseWheel( wxMouseEvent &event )
|
|||
#if wxCHECK_VERSION( 3, 1, 0 ) || defined( USE_OSX_MAGNIFY_EVENT )
|
||||
void EDA_3D_CANVAS::OnMagnify( wxMouseEvent& event )
|
||||
{
|
||||
SetFocus();
|
||||
|
||||
if( m_camera_is_moving )
|
||||
return;
|
||||
|
||||
|
@ -555,6 +557,7 @@ void EDA_3D_CANVAS::OnMouseMove( wxMouseEvent &event )
|
|||
|
||||
void EDA_3D_CANVAS::OnLeftDown( wxMouseEvent &event )
|
||||
{
|
||||
SetFocus();
|
||||
stop_editingTimeOut_Timer();
|
||||
}
|
||||
|
||||
|
@ -574,6 +577,7 @@ void EDA_3D_CANVAS::OnLeftUp( wxMouseEvent &event )
|
|||
|
||||
void EDA_3D_CANVAS::OnMiddleDown( wxMouseEvent &event )
|
||||
{
|
||||
SetFocus();
|
||||
stop_editingTimeOut_Timer();
|
||||
}
|
||||
|
||||
|
@ -599,6 +603,8 @@ void EDA_3D_CANVAS::OnRightClick( wxMouseEvent &event )
|
|||
{
|
||||
wxLogTrace( m_logTrace, wxT( "EDA_3D_CANVAS::OnRightClick" ) );
|
||||
|
||||
SetFocus();
|
||||
|
||||
if( m_camera_is_moving )
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue