forked from organicmaps/organicmaps-tmp
Rotate event fixed in perspective mode.
This commit is contained in:
parent
97d1cfd660
commit
599063085a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue