| 1145 | } |
| 1146 | |
| 1147 | void UserEventStream::DetectLongTap(Touch const & touch) |
| 1148 | { |
| 1149 | ASSERT_EQUAL(m_state, STATE_TAP_DETECTION, ()); |
| 1150 | |
| 1151 | if (DetectForceTap(touch)) |
| 1152 | return; |
| 1153 | |
| 1154 | if (m_touchTimer.ElapsedMilliseconds() > kLongTouchMs) |
| 1155 | { |
| 1156 | TEST_CALL(LONG_TAP_DETECTED); |
| 1157 | m_state = STATE_EMPTY; |
| 1158 | if (m_listener) |
| 1159 | m_listener->OnTap(m2::PointD(touch.m_location), true /* isLongTap */); |
| 1160 | } |
| 1161 | } |
| 1162 | |
| 1163 | bool UserEventStream::DetectDoubleTap(Touch const & touch) |
| 1164 | { |
nothing calls this directly
no test coverage detected