Strange behavior on button click events

I use Enhanced 3.2 display. On button click events I have functions to be executed in my ESP32 code. What happens very often on click: button image changes to pressed, but event function is not executed. It takes more than one attempt to execute it properly. It is very confusing to the users and misleading as they have the impression that click action was performed whereas in fact it was not.
Did anyone encounter this problem and what is the solution?
I was thinking of workaround to keep both images the same and change image to pressed and back in my code, but it defeats the idea of containing UI related routines to Nextion.

It is very frustrating.


I am having same issue. I have to press several times in order to get the action on the device i am connecting to.
I hope somebody clarifies this