[Suggestion]CCMenu::itemForTouch use CCARRAY_FOREACH_REVERSE to foreach

“m_pChildren” is sorted by zorder from small to large, so CCMenu select items starting from the bottom.
Sometimes we will use CCMenu in more ways.
If two items are relatively close, and even have overlapping, the lower one will be selected.
Such as the picture below, the blue one will be touched.

CCARRAY_FOREACH_REVERSE instead of CCARRAY_FOREACH is better, that avoids some of the visual problems.

My poor English…


ccmenu.png (0.6 KB)