From 07dfcccbf5b151b24c9195e8dada9eca4997ced5 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Thu, 14 Oct 2010 16:33:49 +0100 Subject: [PATCH] Throttle mousewheel bindings on the spellbook to prevent duplicates --- Clique.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Clique.xml b/Clique.xml index f39dafa..c0c4ff8 100755 --- a/Clique.xml +++ b/Clique.xml @@ -107,8 +107,11 @@ CliqueConfig:Spellbook_OnBinding(self, key) - local button = (delta > 0) and "MOUSEWHEELUP" or "MOUSEWHEELDOWN" - CliqueConfig:Spellbook_OnBinding(self, button) + if time() ~= self.last_mousewheel then + local button = (delta > 0) and "MOUSEWHEELUP" or "MOUSEWHEELDOWN" + CliqueConfig:Spellbook_OnBinding(self, button) + self.last_mousewheel = time() + end -- 1.7.9.5