| 1085 | } |
| 1086 | |
| 1087 | void UserEventStream::Scale(Touch const & t1, Touch const & t2) |
| 1088 | { |
| 1089 | TEST_CALL(SCALE); |
| 1090 | ASSERT_EQUAL(m_state, STATE_SCALE, ()); |
| 1091 | |
| 1092 | m2::PointD touch1(t1.m_location); |
| 1093 | m2::PointD touch2(t2.m_location); |
| 1094 | |
| 1095 | if (m_listener) |
| 1096 | { |
| 1097 | if (m_navigator.IsRotatingDuringScale()) |
| 1098 | m_listener->OnRotated(); |
| 1099 | |
| 1100 | m_listener->CorrectScalePoint(touch1, touch2); |
| 1101 | } |
| 1102 | |
| 1103 | m_navigator.DoScale(touch1, touch2); |
| 1104 | } |
| 1105 | |
| 1106 | void UserEventStream::EndScale(Touch const & t1, Touch const & t2) |
| 1107 | { |
no test coverage detected