router: feed view size change events to the router engine
This commit is contained in:
parent
12dfb541fc
commit
a141ed3444
|
@ -539,6 +539,12 @@ void ROUTER_TOOL::saveRouterDebugLog()
|
||||||
|
|
||||||
void ROUTER_TOOL::handleCommonEvents( TOOL_EVENT& aEvent )
|
void ROUTER_TOOL::handleCommonEvents( TOOL_EVENT& aEvent )
|
||||||
{
|
{
|
||||||
|
if( aEvent.Category() == TC_VIEW || aEvent.Category() == TC_MOUSE )
|
||||||
|
{
|
||||||
|
auto viewAreaD = getView()->GetBoundary();
|
||||||
|
m_router->SetVisibleViewArea( BOX2I( viewAreaD.GetOrigin(), viewAreaD.GetSize() ) );
|
||||||
|
}
|
||||||
|
|
||||||
if( !aEvent.IsKeyPressed() )
|
if( !aEvent.IsKeyPressed() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue