mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[drape] Allow controlling viewport restoration on DeactivateMapSelection
Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
fc199252eb
commit
90492e95e6
@@ -1332,7 +1332,7 @@ void FrontendRenderer::ProcessSelection(ref_ptr<SelectObjectMessage> msg)
|
||||
if (msg->IsDismiss())
|
||||
{
|
||||
m_selectionShape->Hide();
|
||||
if (!m_myPositionController->IsModeChangeViewport() && m_selectionTrackInfo)
|
||||
if (msg->ShouldRestoreViewport() && !m_myPositionController->IsModeChangeViewport() && m_selectionTrackInfo)
|
||||
{
|
||||
AddUserEvent(make_unique_dp<SetAnyRectEvent>(m_selectionTrackInfo->m_startRect,
|
||||
true /* isAnim */, false /* fitInViewport */,
|
||||
|
||||
Reference in New Issue
Block a user