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

Method DetectShortTap

libs/drape_frontend/user_event_stream.cpp:1134–1145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1132}
1133
1134void UserEventStream::DetectShortTap(Touch const & touch)
1135{
1136 if (DetectForceTap(touch))
1137 return;
1138
1139 if (m_touchTimer.ElapsedMilliseconds() > kDoubleTapPauseMs)
1140 {
1141 m_state = STATE_EMPTY;
1142 if (m_listener)
1143 m_listener->OnTap(m2::PointD(touch.m_location), false /* isLongTap */);
1144 }
1145}
1146
1147void UserEventStream::DetectLongTap(Touch const & touch)
1148{

Callers

nothing calls this directly

Calls 2

ElapsedMillisecondsMethod · 0.80
OnTapMethod · 0.45

Tested by

no test coverage detected