Merge pull request #6055 from darina/pull-to-bound-area-fix

Pull to bound area after a new visible viewport received.
This commit is contained in:
Roman Kuznetsov 2017-05-15 15:36:28 +03:00 committed by GitHub
commit 1ac5e01519

View file

@ -716,6 +716,7 @@ void FrontendRenderer::AcceptMessage(ref_ptr<Message> message)
AddUserEvent(make_unique_dp<SetVisibleViewportEvent>(msg->GetRect()));
m_myPositionController->SetVisibleViewport(msg->GetRect());
m_myPositionController->UpdatePosition();
PullToBoundArea(false /* randomPlace */, false /* applyZoom */);
break;
}