mirror of https://github.com/axmolengine/axmol.git
commit
7e3d3b3d3e
|
@ -68,8 +68,8 @@ bool Layer::init()
|
|||
Director * pDirector;
|
||||
CC_BREAK_IF(!(pDirector = Director::getInstance()));
|
||||
this->setContentSize(pDirector->getWinSize());
|
||||
_touchEnabled = false;
|
||||
_accelerometerEnabled = false;
|
||||
setTouchEnabled(false);
|
||||
setAccelerometerEnabled(false);
|
||||
// success
|
||||
bRet = true;
|
||||
} while(0);
|
||||
|
|
|
@ -183,7 +183,7 @@ void ScrollView::setTouchEnabled(bool e)
|
|||
{
|
||||
_dragging = false;
|
||||
_touchMoved = false;
|
||||
_touches->removeAllObjects();
|
||||
if(_touches)_touches->removeAllObjects();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue