Unofficial Nextion/TJC User Forum

Strange behavior on button click events

Hello,
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.

Thanks,
Michael


This forum is in no way affiliated with NEXTION®, ITEAD STUDIO®, TJC®, or anyone else really. All product names, logos, and brands are property of their respective owners. All company, product, and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement from the respective rights holder(s).