This could be a bug in GestureDetector 2.2
This is the sample code for testing:
Sub Globals
Dim L As ListView
Dim GD As GestureDetector
End Sub
Sub Activity_Create(FirstTime As Boolean)
L.Initialize("L")
Activity.AddView(L,0,0,100%x,100%y)
Dim i As Int
For i =0 To 30
L.AddSingleLine(i)
Next
GD.SetOnGestureListener(L, "Gesture")
End Sub
Sub Gesture_onTouch(Action As Int, X As Float, Y As Float, MotionEvent As Object) As Boolean
Return True 'True = Handle this touch event
End Sub
Sub L_ItemClick (Position As Int, Value As Object)
Msgbox(Position, "ItemClick")
End Sub
As you see,
there is only one line "Return True" in sub Gesture_onTouch. Then the listview can not scroll with finger and can not be clicked. But it doens't work as it should be.
To test it, please run this sample code, put your finger on the listview and move your finger up slowly - slowly - slowly, release your finger, then you will see the bug: the listview scrolls.
It's not all, if you put your finger on the listview for about 3 seconds and then release the finger, you will see the msgbox from sub L_ItemClick. (actually you just need to quilckly and continuously click on the listview and one click will show the pop-up msgbox)
As I tested, This problem happens when GestureDetector work with Listview, ScrollView and ScrollView2D.
View attachment 45938 View attachment 45939