igreenwood / loupe

Twitter-like Android image viewer library
https://medium.com/@issei_greenwood/introducing-loupe-10-minutes-to-implement-twitter-like-image-viewer-19c522db3c68
296 stars 33 forks source link

Add flag useDragToDismiss to enable/disable drag to dismiss gesture #14

Closed adrianolc closed 4 years ago

adrianolc commented 4 years ago

In my app, we have a screen that we want only to allow the zoom feature and not have the drag to dismiss action.

One way I found to control it is adding the flag useDragToDismiss similar to the useFlingToDismissGesture where we can control at the library init and verify if it's on in the onGestureListener.onScroll callback right before call`processDrag.

igreenwood commented 4 years ago

Good 😄