From 6dc61013571df624c6003007c4c3d6c8d5d1f542 Mon Sep 17 00:00:00 2001 From: xuzhiqiang Date: Tue, 14 Jan 2014 22:40:02 +0800 Subject: [PATCH] more useless code --- extensions/GUI/CCScrollView/CCScrollView.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/extensions/GUI/CCScrollView/CCScrollView.cpp b/extensions/GUI/CCScrollView/CCScrollView.cpp index 39a17a160c..b404d38838 100644 --- a/extensions/GUI/CCScrollView/CCScrollView.cpp +++ b/extensions/GUI/CCScrollView/CCScrollView.cpp @@ -397,7 +397,6 @@ void ScrollView::deaccelerateScrolling(float dt) newX = _container->getPosition().x; newY = _container->getPosition().y; - _scrollDistance = _scrollDistance - Point(newX - _container->getPosition().x, newY - _container->getPosition().y); _scrollDistance = _scrollDistance * SCROLL_DEACCEL_RATE; this->setContentOffset(Point(newX,newY));