| 269 | } |
| 270 | |
| 271 | void 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 | |
| 281 | void MyPositionController::ScaleStarted() |
| 282 | { |
no test coverage detected