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

Double clicking registers 3 clicks instead of 2 #38

Open
LaserSlime opened this issue Nov 27, 2021 · 4 comments
Open

Double clicking registers 3 clicks instead of 2 #38

LaserSlime opened this issue Nov 27, 2021 · 4 comments

Comments

@LaserSlime
Copy link
Contributor

If you double click a GuiElement and let's say print out a message each time it is clicked, you get 3 messages instead of only 2.

@Phoenix616
Copy link
Owner

Phoenix616 commented Nov 27, 2021 via email

@LaserSlime
Copy link
Contributor Author

What exactly do you mean by "click type"? It generally happens on all gui elements where you have a way to tell how often theyre clicked. (You can mostly hear the sound being played three times instead of two)

@Phoenix616
Copy link
Owner

Phoenix616 commented Dec 3, 2021

The type that is part of the InventoryClickEvent which triggered the Click. It's provided in Click#getEvent.

@LaserSlime
Copy link
Contributor Author

LaserSlime commented Dec 4, 2021

Ok i found the issue. It registers both the 2 single left clicks and an additional double click. Which results in 3 total clicks. Workaround would be to ignore double clicks. But this should be handled by the plugin itself.

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