MCPcopy Create free account
hub / github.com/comaps/comaps / DragEnded

Method DragEnded

libs/drape_frontend/my_position_controller.cpp:271–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void MyPositionController::DragEnded(m2::PointD const & distance)
272{
273 float constexpr kBindingDistance = 0.1f;
274 m_needBlockAnimation = false;
275 if (distance.Length() > kBindingDistance * std::min(m_pixelRect.SizeX(), m_pixelRect.SizeY()))
276 StopLocationFollow();
277
278 UpdateViewport(kDoNotChangeZoom);
279}
280
281void MyPositionController::ScaleStarted()
282{

Callers 1

OnDragEndedMethod · 0.80

Calls 3

SizeXMethod · 0.80
SizeYMethod · 0.80
LengthMethod · 0.45

Tested by

no test coverage detected