From a44c27bcfc12e5277f9878cfefbd71ec17614993 Mon Sep 17 00:00:00 2001 From: torhal Date: Sun, 22 Nov 2009 06:16:09 +0000 Subject: [PATCH] Meh. Actually commit the ScrollFrame fix this time. --- ARLFrame.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 21379a7..05af4e2 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -2601,7 +2601,9 @@ function addon:InitializeFrame() MainPanel.scroll_frame:SetPoint("TOPLEFT", MainPanel, "TOPLEFT", 20, -97) MainPanel.scroll_frame:SetScript("OnVerticalScroll", function(self, arg1) + self.scrolling = true FauxScrollFrame_OnVerticalScroll(self, arg1, 16, self.Update) + self.scrolling = nil end) end -- do @@ -3975,8 +3977,8 @@ do local skill_sort = (sort_type == "SkillAsc" or sort_type == "SkillDesc") local insert_index = 1 - -- If not refreshing an existing list (after expanding/contracting an entry), wipe and re-initialize the entries. - if not refresh then + -- If not refreshing an existing list and not scrolling up/down, wipe and re-initialize the entries. + if not refresh and not self.scrolling then for i = 1, #self.entries do ReleaseTable(self.entries[i]) end -- 1.7.9.5