Hi.
I have a question about touch action. On my phone (android 2.3.3) when I press a panel and holds, both action_down and action_move trigger. In the emulator (2.3.3) just action_down trigger (like it should I guess).
But I found a solution, the code I had under ACTION_MOVE I moved to Action = 3, then it's working.
Why this different behavior? Is it a bug?
I have a question about touch action. On my phone (android 2.3.3) when I press a panel and holds, both action_down and action_move trigger. In the emulator (2.3.3) just action_down trigger (like it should I guess).
But I found a solution, the code I had under ACTION_MOVE I moved to Action = 3, then it's working.
Why this different behavior? Is it a bug?
B4X:
Sub Panel1_Touch (Action As Int, X As Float, Y As Float) As Boolean
Dim pnl As Panel
pnl = Sender
Select Action
Case Activity.ACTION_DOWN
'This works
Case Activity.ACTION_MOVE
'This trigger when I push a panel on my phone, not in emulator (both 2.3.3)
Case Activity.ACTION_UP
'This works
Case 3
'Im using this instead of action_move
End Select
Return True
End Sub