Sub Gesture1_onDrag(deltaX As Float, deltaY As Float, MotionEvent As Object)
Try
pnlSlide(1).Left = Max(0, Min(pnlSlide(1).Left + deltaX, 100%x - pnlSlide(1).Width))
Catch
Log(LastException)
End Try
End Sub
Sub Gesture1_onTouch(Action As Int, X As Float, Y As Float, MotionEvent As Object) As Boolean
Try
If Action = Activity.ACTION_UP Then DragComplete
Catch
Log(LastException)
End Try
Return True
End Sub