more useless code

This commit is contained in:
xuzhiqiang 2014-01-14 22:40:02 +08:00
parent 8f76080b15
commit 6dc6101357
1 changed files with 0 additions and 1 deletions

View File

@ -397,7 +397,6 @@ void ScrollView::deaccelerateScrolling(float dt)
newX = _container->getPosition().x; newX = _container->getPosition().x;
newY = _container->getPosition().y; newY = _container->getPosition().y;
_scrollDistance = _scrollDistance - Point(newX - _container->getPosition().x, newY - _container->getPosition().y);
_scrollDistance = _scrollDistance * SCROLL_DEACCEL_RATE; _scrollDistance = _scrollDistance * SCROLL_DEACCEL_RATE;
this->setContentOffset(Point(newX,newY)); this->setContentOffset(Point(newX,newY));