Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Bizare touch-event problem

Ranch Hand
Posts: 49
  • 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!
    Bookmark Topic Watch Topic
  • New Topic