Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bizare touch-event problem

 
Stephen Bell
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys, really hope someone can help with this, it's been driving me crazy all day and I can't figure it out. I actually found it completely by accident while testing my app's controls....

I have a left and right button on the left of the screen and a jump button on the right.

Everything works as it should but if I touch a large area of my hand (the fleshy part at the base of the thumb for instance) onto the screen, then release it and then press one of my arrows, the sprite moves in that direction for a few seconds, and then ACTION_UP is mysteriously triggered. The sprite stops and then if I release my finger and re-apply it to an arrow, the same thing happens. This goes on and on and eventually (randomly??) stops and everything work OK again.

Really odd. I've removed ACTION_POINTER_UP and ACTION_POINTER_DOWN along with ACTION_MOVE. So I'm just using ACTION_UP and ACTION_DOWN.

Anyone come across this or anything like it? My test device is a Google Nexus 10 tablet running JB 4.2.2 - not sure if the device or OS version is the issue, I will test on an old Gingerbread handset in the next day or so.

Any comments more than welcome - cheers!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic