nativescript-image-swipe icon indicating copy to clipboard operation
nativescript-image-swipe copied to clipboard

Zoom doesn't work inside of ScrollView on Android

Open buuhuu opened this issue 8 years ago • 3 comments

I put the ImageSwipe as view (beside others) in a ScrollView (vertical). Zooming doesn't work in that case on android devices.

According to some research this is hard to achieve as the ScrollView#dispatchTouchEvent() would be required to invoke the custom GestureDetector.

buuhuu avatar Jun 18 '17 17:06 buuhuu

Seems to be related to some particular devices only. Doesn't work on HTC One M8 (Android 7) but it does work (kind of) on Samsung Galaxy S5 (Android 6)

buuhuu avatar Jun 19 '17 08:06 buuhuu

I worked around that by implementing my own OnTouchListener dispatching touch events to the currently visible image view. Its more like a hack but it works for now.

buuhuu avatar Jun 19 '17 08:06 buuhuu

I have the same problem, would you please let me know how you solve this problem? any sample code or how to implement OnTouchListener thanks

shahramrz avatar Jan 20 '20 09:01 shahramrz