| 1027 | } |
| 1028 | |
| 1029 | void UserEventStream::Drag(Touch const & t) |
| 1030 | { |
| 1031 | TEST_CALL(DRAG); |
| 1032 | ASSERT_EQUAL(m_state, STATE_DRAG, ()); |
| 1033 | m_navigator.DoDrag(m2::PointD(t.m_location)); |
| 1034 | |
| 1035 | if (m_kineticScrollEnabled && m_scroller.IsActive()) |
| 1036 | m_scroller.Update(m_navigator.Screen()); |
| 1037 | } |
| 1038 | |
| 1039 | bool UserEventStream::EndDrag(Touch const & t, bool cancelled) |
| 1040 | { |