From 7f13f409137acb25fa7a7847de3e296f472a59dc Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 29 Jun 2010 04:02:42 -0400 Subject: [PATCH] Holding the ALT key when clicking the ScrollBar's up or down button will move the position to the top or bottom of the list. --- Frame.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Frame.lua b/Frame.lua index 9125739..1eb9490 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2205,12 +2205,22 @@ do ScrollUpButton:SetScript("OnClick", function(self, button, down) - ScrollBar_Scroll(1) + if _G.IsAltKeyDown() then + local min_val = ScrollBar:GetMinMaxValues() + ScrollBar:SetValue(min_val) + else + ScrollBar_Scroll(1) + end end) ScrollDownButton:SetScript("OnClick", function(self, button, down) - ScrollBar_Scroll(-1) + if _G.IsAltKeyDown() then + local _, max_val = ScrollBar:GetMinMaxValues() + ScrollBar:SetValue(max_val) + else + ScrollBar_Scroll(-1) + end end) ScrollBar:SetScript("OnMouseWheel", -- 1.7.9.5