Throttle mousewheel bindings on the spellbook to prevent duplicates
James Whitehead II [10-14-10 - 15:33]
Throttle mousewheel bindings on the spellbook to prevent duplicates
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)
</OnKeyDown>
<OnMouseWheel>
- 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
</OnMouseWheel>
</Scripts>
<NormalTexture file="Interface\BUTTONS/GLOWSTAR">