DROPDOWN... Key not pressed but getting callbacks

event.get_code() is getting many random values without button being pressed.
Is this related to some animation function?


simulator link…
https://sim.lvgl.io/v8.1/micropython/ports/javascript/index.html?script_direct=00c011390c2e8b32ae754a3a6d71c26a9efcd6e0

I use a custom burst of… lv.tick_inc() and lv.task_handler() works with outher modules.
But dropdown requires multiple presses to display list.

solved my problem…

I filtered the callback first.

These are not random values. These are real events.
An event is triggered not only when a value change, but also when different parts are drawn, an object is queried etc.

You can see that if you parse the events: LVGL/MicroPython Simulator

As you noticed, handling all these events in Micropython is expensive, that’s why you should usually provide a filter when calling add_event_cb, which filters the events on the C side.