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

Method OnTouchMapAction

libs/drape_frontend/frontend_renderer.cpp:2111–2119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2109}
2110
2111void FrontendRenderer::OnTouchMapAction(TouchEvent::ETouchType touchType, bool isMapTouch)
2112{
2113 // Here we block timer on start of touch actions. Timer will be unblocked on
2114 // the completion of touch actions. It helps to prevent the creation of redundant checks.
2115 auto const blockTimer = (touchType == TouchEvent::TOUCH_DOWN || touchType == TouchEvent::TOUCH_MOVE);
2116 m_myPositionController->ResetRoutingNotFollowTimer(blockTimer);
2117 if (isMapTouch)
2118 m_selectionTrackInfo.reset();
2119}
2120
2121bool FrontendRenderer::OnNewVisibleViewport(m2::RectD const & oldViewport, m2::RectD const & newViewport,
2122 bool needOffset, m2::PointD & gOffset)

Callers 1

ProcessTouchMethod · 0.45

Calls 2

resetMethod · 0.45

Tested by

no test coverage detected