Browse Source

Disable autopanning when GAL panel does not have focus.

pull/1/head
Maciej Suminski 12 years ago
parent
commit
129e26d512
  1. 5
      common/view/wx_view_controls.cpp

5
common/view/wx_view_controls.cpp

@ -217,6 +217,11 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
{
case AUTO_PANNING:
{
#if wxCHECK_VERSION( 3, 0, 0 )
if( !m_parentPanel->HasFocus() )
break;
#endif
double borderSize = std::min( m_autoPanMargin * m_view->GetScreenPixelSize().x,
m_autoPanMargin * m_view->GetScreenPixelSize().y );

Loading…
Cancel
Save