mirror of https://github.com/axmolengine/axmol.git
more useless code
This commit is contained in:
parent
f59c969216
commit
8f76080b15
|
@ -646,7 +646,7 @@ void ScrollView::onTouchMoved(Touch* touch, Event* event)
|
||||||
{
|
{
|
||||||
if (_touches.size() == 1 && _dragging)
|
if (_touches.size() == 1 && _dragging)
|
||||||
{ // scrolling
|
{ // scrolling
|
||||||
Point moveDistance, newPoint, maxInset, minInset;
|
Point moveDistance, newPoint;
|
||||||
Rect frame;
|
Rect frame;
|
||||||
float newX, newY;
|
float newX, newY;
|
||||||
|
|
||||||
|
@ -697,9 +697,6 @@ void ScrollView::onTouchMoved(Touch* touch, Event* event)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
maxInset = _maxInset;
|
|
||||||
minInset = _minInset;
|
|
||||||
|
|
||||||
newX = _container->getPosition().x + moveDistance.x;
|
newX = _container->getPosition().x + moveDistance.x;
|
||||||
newY = _container->getPosition().y + moveDistance.y;
|
newY = _container->getPosition().y + moveDistance.y;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue