Double clicking registers 3 clicks instead of 2
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.
Are they all of the same click type? Because I'm pretty sure double clicking is a different action from normal clicks in Vanilla inventories.
On Sat, 27 Nov 2021, 19:56 LaserSlime, @.***> wrote:
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.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Phoenix616/InventoryGui/issues/38, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMAMTO5M6UYSLQNM5KYZ6TUOESW3ANCNFSM5I4PARIA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
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)
The type that is part of the InventoryClickEvent which triggered the Click. It's provided in Click#getEvent.
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.