Rotate event fixed in perspective mode.

This commit is contained in:
Daria Volvenkova 2016-06-27 18:19:22 +03:00
parent 97d1cfd660
commit 599063085a

View file

@ -195,8 +195,9 @@ ScreenBase const & UserEventStream::ProcessEvents(bool & modelViewChanged, bool
ScreenBase const & screen = m_navigator.Screen();
if (screen.isPerspective())
{
m2::PointD pt = screen.P3dtoP(screen.PixelRectIn3d().Center());
breakAnim = SetFollowAndRotate(screen.PtoG(pt), pt, e.m_rotate.m_targetAzimut, kDoNotChangeZoom, true);
m2::PointD pt = screen.PixelRectIn3d().Center();
breakAnim = SetFollowAndRotate(screen.PtoG(screen.P3dtoP(pt)), pt,
e.m_rotate.m_targetAzimut, kDoNotChangeZoom, true);
}
else
{