SimpleButton icon indicating copy to clipboard operation
SimpleButton copied to clipboard

events clicked and holding do interfere

Open cyberman54 opened this issue 6 years ago • 2 comments

If i use events clicked and holding on the same button, they interfere: when holding the button, this generates the holding event, but also an unsolicited clicked event.

cyberman54 avatar May 04 '19 12:05 cyberman54

I had the same, also doubleclick I solved by manipulating the timers but it was not really elegant solution I ended up using: b->setOnClicked(&OnClicked_cb,100,100); and by reading the time button is clicked: uint32_t pushed_ms = b->getPushTime(); I simulate holding function

homonto avatar Nov 10 '22 11:11 homonto

Meanwhile i changed to OneButton lib.

cyberman54 avatar Nov 10 '22 12:11 cyberman54