Scale changing after resize in follow and rotate mode on Android fixed.

This commit is contained in:
Daria Volvenkova 2016-03-23 17:04:07 +03:00
parent 6afd04693a
commit 2986ebe76f

View file

@ -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)