issue #5005, fix widget hittest problem

This commit is contained in:
andyque 2014-05-13 12:04:43 +08:00
parent 5d24b3d99a
commit b2397f4059
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ void Widget::didNotSelectSelf()
bool Widget::onTouchBegan(Touch *touch, Event *unusedEvent)
{
_hitted = false;
if (isEnabled() && isTouchEnabled())
if (isVisible() && isEnabled() && isTouchEnabled())
{
_touchStartPos = touch->getLocation();
if(hitTest(_touchStartPos) && clippingParentAreaContainPoint(_touchStartPos))