-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with longpress behavior #72
Comments
I have now been able to fix the problem. Before calling the callback routine longclick_detected_cb(), the last_click_type must also be set to long_click. Then everything works as expected:
Would be nice if you could adopt this. |
Hey Jui, |
Merged
Hey @juiplus, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have tested the MultiHandler.ino example on an ESP8266.
In principle it works, only the behavior with a long click does not work as expected. If a long click (handler setLongClickDetectedHandler() used) is executed after a single click or double click, the old state is always output first, e.g. click(1) or click(2). Only when a long click is executed again is it recognized as longclick correctly.
Serial output:
Multi Handler Demo
click (1)
click (1) <-click loong, but click(1) will be recognized wrongly!?
longclick (1) <- that is correct
Please try to reproduce it, maybe there is a simple workaround.
The text was updated successfully, but these errors were encountered: