| 1104 | } |
| 1105 | |
| 1106 | void UserEventStream::EndScale(Touch const & t1, Touch const & t2) |
| 1107 | { |
| 1108 | TEST_CALL(END_SCALE); |
| 1109 | ASSERT_EQUAL(m_state, STATE_SCALE, ()); |
| 1110 | m_state = STATE_EMPTY; |
| 1111 | |
| 1112 | m2::PointD touch1(t1.m_location); |
| 1113 | m2::PointD touch2(t2.m_location); |
| 1114 | |
| 1115 | if (m_listener) |
| 1116 | { |
| 1117 | m_listener->CorrectScalePoint(touch1, touch2); |
| 1118 | m_listener->OnScaleEnded(); |
| 1119 | } |
| 1120 | |
| 1121 | m_navigator.StopScale(touch1, touch2); |
| 1122 | |
| 1123 | m_kineticTimer.Reset(); |
| 1124 | } |
| 1125 | |
| 1126 | void UserEventStream::BeginTapDetector() |
| 1127 | { |
nothing calls this directly
no test coverage detected