encoder icon indicating copy to clipboard operation
encoder copied to clipboard

setDoubleClickEnabled(false) also disables Click

Open RossAWaddell opened this issue 5 years ago • 1 comments

I was not using double clicks in my code so I disabled it in my setup(), but then when I went to add the ClickEncoder::Clicked case it wasn't being captured. As soon as I commented out this line:

encoder->setDoubleClickEnabled(false);

The single click worked. Is that intentional? I would still like to disable DoubleClick but capture Clicked.

I'm using the latest version of the library as downloaded from here.

RossAWaddell avatar Nov 21 '19 18:11 RossAWaddell

To fix this, I changed this line:

if (--doubleClickTicks == 0) {

to:

if (doubleClickTicks == 0) {

65roadster avatar Jan 07 '24 01:01 65roadster