Skip to main content
S.Mirza
Associate II
May 22, 2020
Question

Touch event problem

  • May 22, 2020
  • 12 replies
  • 2612 views

Hi. I generate a touchgfx project that toggle an led by pressing a button. the problem is trigger action by clicking button is randomly happen. the problem comes from that the touch function gets some touch sample and they slightly different .How do I fix this Issue?

This topic has been closed for replies.

12 replies

S.Mirza
S.MirzaAuthor
Associate II
June 15, 2020

Hello. You are right Alexandre RENOUX(ST Employee). I found the problem. When I touch the touch screen, the function return the true coordinate but at the moment I release the touch, the last coordinate was unvalid (I mean the last coordinate that the function returned is outside of the range. ) so I filtered the unvalide coordinate and the problem solved.

thanks to everyone.