forked from organicmaps/organicmaps
Decreased my position binding distanse
This commit is contained in:
parent
861848bd5a
commit
8b4c4f1a8d
1 changed files with 2 additions and 1 deletions
|
@ -156,8 +156,9 @@ void MyPositionController::DragStarted()
|
|||
|
||||
void MyPositionController::DragEnded(m2::PointD const & distance)
|
||||
{
|
||||
float const kBindingDistance = 0.1;
|
||||
SetModeInfo(ResetModeBit(m_modeInfo, BlockAnimation));
|
||||
if (distance.Length() > 0.2 * min(m_pixelRect.SizeX(), m_pixelRect.SizeY()))
|
||||
if (distance.Length() > kBindingDistance * min(m_pixelRect.SizeX(), m_pixelRect.SizeY()))
|
||||
StopLocationFollow();
|
||||
|
||||
Follow();
|
||||
|
|
Loading…
Add table
Reference in a new issue