Android Question Button_Down bug

techknight

Well-Known Member
Licensed User
Longtime User
I am having an issue where a Sub Button1_Down event is firing twice.

If I dont lift my finger off the button fast enough, or hold my finger on it, the Down routine fires twice.

any way to fix this?
 

JonPM

Well-Known Member
Licensed User
Longtime User
I believe this is a known bug. The best work around is probably to use a panel instead of a button
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
I fixed it by using a boolean variable on the Click event.

When pressing down, it would always go DOWN/UP/DOWN. Whilst pressing and releasing was DOWN/UP/CLICK.

So using Click, I managed a variable so down only ran 1 time. I needed down instead of click because if someone put the finger on the button for a bit too long, you lose time. No good for a stopwatch situation. Gotta trigger on the Down event.
 
Upvote 0
Top