mirror of
https://github.com/u0u0/Cocos2d-Lua-Community.git
synced 2026-05-06 22:01:44 +08:00
ended事件在move之后发送.
This commit is contained in:
@@ -609,14 +609,13 @@ void ScrollView::processAutoScrolling(float deltaTime)
|
||||
}
|
||||
}
|
||||
|
||||
moveInnerContainer(newPosition - getInnerContainerPosition(), reachedEnd);
|
||||
// Finish auto scroll if it ended
|
||||
if(reachedEnd)
|
||||
{
|
||||
_autoScrolling = false;
|
||||
dispatchEvent(EventType::AUTOSCROLL_ENDED);
|
||||
}
|
||||
|
||||
moveInnerContainer(newPosition - getInnerContainerPosition(), reachedEnd);
|
||||
}
|
||||
|
||||
void ScrollView::jumpToDestination(const Vec2 &des)
|
||||
|
||||
Reference in New Issue
Block a user