diff --git a/cocos/ui/UIScrollView.cpp b/cocos/ui/UIScrollView.cpp index a87f9a6109..36f4d4861f 100644 --- a/cocos/ui/UIScrollView.cpp +++ b/cocos/ui/UIScrollView.cpp @@ -472,7 +472,7 @@ void ScrollView::stopAutoScroll() { _autoScrolling = false; _autoScrollAttenuate = true; - _autoScrollDuration = 0; + _autoScrollTotalTime = 0; _autoScrollAccumulatedTime = 0; }