[FIX]: make sure parent is visible before handling touch

Context:

After having issues with a `TableView` instance receiving touches even though the parent is not visible, I found some code in the `Menu` class that checks if parent is visible before handling touches, so I ported that code to the `TableView` class.