MCPcopy Create free account
hub / github.com/axmolengine/axmol / stoppedAnimatedScroll

Method stoppedAnimatedScroll

extensions/GUI/src/GUI/ScrollView/ScrollView.cpp:470–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470void ScrollView::stoppedAnimatedScroll(Node* /*node*/)
471{
472 this->unschedule(AX_SCHEDULE_SELECTOR(ScrollView::performedAnimatedScroll));
473 // After the animation stopped, "scrollViewDidScroll" should be invoked, this could fix the bug of lack of tableview
474 // cells.
475 if (_delegate != nullptr)
476 {
477 _delegate->scrollViewDidScroll(this);
478 }
479}
480
481void ScrollView::performedAnimatedScroll(float /*dt*/)
482{

Callers

nothing calls this directly

Calls 2

unscheduleMethod · 0.45
scrollViewDidScrollMethod · 0.45

Tested by

no test coverage detected