Description
I have a button matrix to input a PIN.
The buttons will register if the touch is dragged. I want to avoid this behavior, as it causes unwanted inputs (watch gif - first input of pin is the expected behavior, second input is the unwanted behavior).
What MCU/Processor/Board and compiler are you using?
Simulator (Eclipse)
ESP32 (IDF)
What LVGL version are you using?
7.3.1
What do you want to achieve?
Registering button input in a button matrix only if the touch was released.
What have you tried so far?
Tried to register input on release instead of press, but the result is the same.
Code to reproduce
Default button matrix on a 3x4 grid.
Screenshot and/or video
EDIT
Is there anyway to know the touch status (pressed/not pressed)? Could create a registry to know if when a button is pressed there were any touch inputs in the previous (mili-)seconds.
EDIT 2
Reading on the Porting section on the docs right now.
EDIT 3
For clarification, here’s the physical version of the issue, might be easier to understand:
It registers button click even if I don’t lift the pen from the screen and drag it around the keyboard.