CCScrollView and registerWithTouchDispatcher

Can anyone tell me why registerWithTouchDispatcher in CCScrollView looks like:

void CCScrollView::registerWithTouchDispatcher()
{
    CCDirector::sharedDirector()->getTouchDispatcher()->addTargetedDelegate(this, CCLayer::getTouchPriority(), false);
}

instead

void CCScrollView::registerWithTouchDispatcher()
{
    CCDirector::sharedDirector()->getTouchDispatcher()->addTargetedDelegate(this, CCLayer::getTouchPriority(), true);
}

When i have CCScrollView over a button then button recives touches ;/

Is it a bug or feature?

Buttons have higher touch priority (128, as far as i remember) In cocos the lower the value you pass to setTouchPriority(int); the “faster” this object gets the touch. So you could just call

yourScrollView->setTouchPriority(-9999); //or other small number

And if you are interested in ScrollView with buttons then there was a discussion about this on this forum about 2 weeks ago.

That doesn’t help because it doesn’t consume touch. I have ScrollView overlaps buttons (Z-order is higher)