gal: reset autopan state when autopanning is disabled
Fixes: lp:1674022 * https://bugs.launchpad.net/kicad/+bug/1674022
This commit is contained in:
parent
2637835a1e
commit
f599f10a03
|
@ -278,6 +278,12 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
|
|||
{
|
||||
case AUTO_PANNING:
|
||||
{
|
||||
if ( !m_settings.m_autoPanEnabled )
|
||||
{
|
||||
m_state = IDLE;
|
||||
return;
|
||||
}
|
||||
|
||||
#if wxCHECK_VERSION( 3, 0, 0 )
|
||||
if( !m_parentPanel->HasFocus() )
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue