InventoryClickEvent fires three times on rapid double click

Discussion in 'Plugin Development' started by SaxSalute, Apr 1, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    SaxSalute

    I'm currently working on an ItemMenu implementation and I've run into a strange anomaly. Even when all I have in the InventoryClickEvent is a println statement, a rapid double click will register as three clicks. By rapid I mean about twice in a third of a second. Two or more clicks farther apart than that cause no issues. It's not causing any issues with the menu, but it is strange behavior that I want to understand. Is this a quirk of the API, or is there something to do about this?
     
  2. Offline

    nverdier

    @SaxSalute Well you could delay the time in between clicks.
     
  3. Offline

    SaxSalute

    I know how I can stop it, I was just wondering if this is a known problem.
     
Thread Status:
Not open for further replies.

Share This Page