| 1132 | } |
| 1133 | |
| 1134 | void 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 | |
| 1147 | void UserEventStream::DetectLongTap(Touch const & touch) |
| 1148 | { |
nothing calls this directly
no test coverage detected