0

The problem is I would like to call some function when onscroll is firing but not onfling. However, I found that if the onfling is trigger , it comes with the onscroll. I notice the difference between them is onscroll + tapUp = onfling.

So I would like to detect the following case:

Inside onscroll listener:

if not tap up then run some function 

How to achieve this? thanks

user782104
  • 13,233
  • 55
  • 172
  • 312

1 Answers1

1

Set a flag inside tapUp , if !flag call the method u want to call or use OnGestureListenerinterface . which has onfling as a seperate method. Link

Community
  • 1
  • 1
Viswanath Lekshmanan
  • 9,945
  • 1
  • 40
  • 64