alexvasilkov / GestureViews

ImageView and FrameLayout with gestures control and position animation
Apache License 2.0
2.37k stars 384 forks source link

How to listen to missing gesture listeners? #146

Closed ParticleCore closed 4 years ago

ParticleCore commented 4 years ago

I'm trying to listen to common gestures such as onFling and onScroll, but these aren't available in the GestureController.OnGestureListener, isn't there a way to listen to these through the GestureView library?

alexvasilkov commented 4 years ago

You can listent for basic events using GestureController.setOnGesturesListener(). It does not allow you to handle scroll and fling gestures though since they are consumed by the library and transformed to image state changes.

Please describe your use-case, why do you need those callbacks?

ZhuSky commented 4 years ago

@alexvasilkov I have the same problem. I need to monitor scrolling events, For handling external drawer effects. Is there a listeners like this???

alexvasilkov commented 4 years ago

@ZhuSky Android's drawer does not require setting scroll listener to child views, instead it is implemented as a view group that intercepts touch gestures from its children.