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

Method EndScale

libs/drape_frontend/user_event_stream.cpp:1106–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1104}
1105
1106void 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
1126void UserEventStream::BeginTapDetector()
1127{

Callers

nothing calls this directly

Calls 4

StopScaleMethod · 0.80
CorrectScalePointMethod · 0.45
OnScaleEndedMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected