2019-12-08 06:21 AM
Hi,
I'm struggling with a missing event in my application.
As far as I can see, the touch HW is generating the touch event, the touch controller's "sampleTouch" method is signalling the event to the library correctly, the view is detecting the PRESSED and RELEASED events but the button on the view very often misses the RELEASED event on which I rely to handle the event.
I have added debug messages to try an pinpoint the issue.
The printout is attached with my comments.
So, finally, my question is:
How can I guarantee I catch the RELEASED event from the button?
I'm currently using library version 4.9.3 running on a STM32F767 processor with a 320*240 touch display for which I have implemented the low level, it is not one of the evaluation boards.
Thanks,
Daniel
2019-12-11 06:07 AM
hal.setTouchSampleRate(1);
hal.setFingerSize(1);
2019-12-11 06:19 AM
Okay, i need to leave the office now. I think it's a simple thing we're missing. If your TouchController is working as expected (Touch detected, not detected and proper cooridnates), then there's no reason why it shouldn't work.
Can you share your UI or at least show me how it looks? Can you create as simple a UI as possible? Just a background and a button.
/Martin
2019-12-11 06:36 AM
Sent you a PM with the details.
The button on its own behaves as expected. The problem is demonstrated when the button is on the same view with the updating textAreas.