mirror of https://github.com/axmolengine/axmol.git
Fixed a CCMenu bug that prevented the touch priority from being set to the value specified by a call to CCMenu::setTouchPriority(int).
This commit is contained in:
parent
d28a29ab98
commit
908035bdee
|
@ -215,7 +215,7 @@ void CCMenu::setHandlerPriority(int newPriority)
|
|||
void CCMenu::registerWithTouchDispatcher()
|
||||
{
|
||||
CCDirector* pDirector = CCDirector::sharedDirector();
|
||||
pDirector->getTouchDispatcher()->addTargetedDelegate(this, kCCMenuHandlerPriority, true);
|
||||
pDirector->getTouchDispatcher()->addTargetedDelegate(this, this->getTouchPriority(), true);
|
||||
}
|
||||
|
||||
bool CCMenu::ccTouchBegan(CCTouch* touch, CCEvent* event)
|
||||
|
|
Loading…
Reference in New Issue