mirror of https://github.com/axmolengine/axmol.git
a potential bug in ScrollView
check _touches in setTouchEnabled
This commit is contained in:
parent
c9627abd3d
commit
912a52a677
|
@ -183,7 +183,7 @@ void ScrollView::setTouchEnabled(bool e)
|
||||||
{
|
{
|
||||||
_dragging = false;
|
_dragging = false;
|
||||||
_touchMoved = false;
|
_touchMoved = false;
|
||||||
_touches->removeAllObjects();
|
if(_touches)_touches->removeAllObjects();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue