Skip to content
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

setDoubleClickEnabled(false) also disables Click #32

Open
RossAWaddell opened this issue Nov 21, 2019 · 1 comment
Open

setDoubleClickEnabled(false) also disables Click #32

RossAWaddell opened this issue Nov 21, 2019 · 1 comment

Comments

@RossAWaddell
Copy link

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.

@65roadster
Copy link

To fix this, I changed this line:

if (--doubleClickTicks == 0) {

to:

if (doubleClickTicks == 0) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants