mirror of https://github.com/axmolengine/axmol.git
more useless code
This commit is contained in:
parent
8f76080b15
commit
6dc6101357
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue