Touch Doesnt Always Register The Event

Using a button created from the ui class, some times really randomly a button fails to register ive lifted my finger from the screen and it says highlighted.

If I touch the screen again, even not on the button, the button then deactivates (im assuming the button is registering im no longer in its boundary).

Im trying to get a bit of code to demonstrate but like I said its really random. Have you guys noticed this at all? [import]uid: 5354 topic_id: 736 reply_id: 300736[/import]

Only time I’ve seen this behavior is when I’m overlapping “touch” areas with another button. To that end, I always allow for at least a 40x40 touch “spot” on any button and am very careful about placement next to other buttons. Aside from that, I’ve not experienced this bug myself. [import]uid: 5659 topic_id: 736 reply_id: 1464[/import]

Yeah some of my buttons are overlapping so I extended ui to allow for that. It registers the touch fine and if I drag the finger out of bounds, even when overlapping, it registers that.

Whats puzzling is that the button is focused at that point for all future touch events and yet randomly (link 1-100 trys) the button will not register me lifting my finger.
[import]uid: 5354 topic_id: 736 reply_id: 1466[/import]

Matthew, can you send sample code for this bug to support@anscamobile.com? (Please reference bug #115.) [import]uid: 3007 topic_id: 736 reply_id: 1980[/import]

I think I solved it

I rewrote a lot of ui.lua to specifically work as I needed it adding a few extra checks so I can use none square shapes as buttons and it seems to have fixed the problem

At this point I think it was probably my code rather than Corona as ive not seen the issue since (but I am using the 2.0 beta now)

PS Believe me you dont want to see the code that I was using, so kill this bug report.

Cheers

Matt [import]uid: 5354 topic_id: 736 reply_id: 2021[/import]