Skip to main content
DPerr.2216
Associate II
December 8, 2019
Question

Missing ClickEvent::RELEASED event on Button

  • December 8, 2019
  • 12 replies
  • 3965 views

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

This topic has been closed for replies.

12 replies

Martin KJELDSEN
Principal III
December 11, 2019

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

DPerr.2216
Associate II
December 11, 2019

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.