diff --git a/cocos/ui/UIWidget.cpp b/cocos/ui/UIWidget.cpp index 14d7f63597..fd1f58a70f 100644 --- a/cocos/ui/UIWidget.cpp +++ b/cocos/ui/UIWidget.cpp @@ -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))