fix text input being clickable when invisible

This commit is contained in:
HJfod 2024-04-14 17:58:43 +03:00
parent 1145426402
commit 3fbda5748e

View file

@ -13,7 +13,7 @@ struct TextInputNodeFix : Modify<TextInputNodeFix, CCTextInputNode> {
return CCTextInputNode::ccTouchBegan(touch, event);
}
if (!this->isVisible()) {
if (!nodeIsVisible(this)) {
this->onClickTrackNode(false);
return false;
}