MCPcopy Create free account
hub / github.com/comaps/comaps / Drag

Method Drag

libs/drape_frontend/user_event_stream.cpp:1029–1037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027}
1028
1029void 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
1039bool UserEventStream::EndDrag(Touch const & t, bool cancelled)
1040{

Callers

nothing calls this directly

Calls 3

DoDragMethod · 0.80
IsActiveMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected