react-native-context-menu-view icon indicating copy to clipboard operation
react-native-context-menu-view copied to clipboard

Touchables positioned outside of the view are not tappable

Open ehynds opened this issue 4 years ago • 3 comments
trafficstars

Hi there, thanks for the great library.

I have a TouchableOpacity nested inside ContextMenu that's absolutely positioned to fall 50% outside of the view, as depicted in this screenshot (notice the comment bubble in the top-right -- the ContextMenu is the grey part):

image

The only part of the touchable that responds to a touch event is the part of the view that's visibly inside the ContextMenu. The remaining 50% of the touchable that falls outside the bounds of ContextMenu doesn't respond at all. Here's a recording of the issue:

https://user-images.githubusercontent.com/130820/122115718-c670e800-cdf2-11eb-8c8f-4726eddde8dc.mp4

Is there a way to workaround this?

Thanks!

ehynds avatar Jun 15 '21 20:06 ehynds

This is crazy! The UIView that the context menu wraps controls the bounds of the preview showing, so there must be something weird happening with the layout clipping. Are all the touchables child views or are you using absolute? A reproducible simple example I can test with would go a long way

mpiannucci avatar Feb 13 '22 20:02 mpiannucci

Hi ! No news ?

mattpilleul avatar Jan 24 '23 03:01 mattpilleul