forked from organicmaps/organicmaps
Scale changing after resize in follow and rotate mode on Android fixed.
This commit is contained in:
parent
6afd04693a
commit
2986ebe76f
1 changed files with 7 additions and 6 deletions
|
@ -138,12 +138,13 @@ ScreenBase const & UserEventStream::ProcessEvents(bool & modelViewChange, bool &
|
|||
}
|
||||
|
||||
modelViewChange = !events.empty() || m_state == STATE_SCALE || m_state == STATE_DRAG;
|
||||
bool breakAnim = false;
|
||||
for (UserEvent const & e : events)
|
||||
{
|
||||
if (m_perspectiveAnimation != nullptr && FilterEventWhile3dAnimation(e.m_type))
|
||||
continue;
|
||||
|
||||
bool breakAnim = false;
|
||||
|
||||
switch (e.m_type)
|
||||
{
|
||||
case UserEvent::EVENT_SCALE:
|
||||
|
@ -232,12 +233,12 @@ ScreenBase const & UserEventStream::ProcessEvents(bool & modelViewChange, bool &
|
|||
ASSERT(false, ());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (breakAnim)
|
||||
{
|
||||
m_animation.reset();
|
||||
modelViewChange = true;
|
||||
if (breakAnim)
|
||||
{
|
||||
m_animation.reset();
|
||||
modelViewChange = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_animation != nullptr)
|
||||
|
|
Loading…
Add table
Reference in a new issue