From 8dec80ae638711dacb46e0760ebc39fbeac3051a Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Wed, 16 May 2012 06:36:01 -0400 Subject: [PATCH] Fixed a bug that caused scrollbars to always autoscroll --- changelog.txt | 5 +++++ init.lua | 2 +- objects/list.lua | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 1da68ae..6c0b732 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,8 @@ +================================================ +Version 0.9.1.5 - Alpha (May 16 - 2012) +================================================ +[FIXED] a bug that caused scrollbars to always autoscroll + ================================================ Version 0.9.1.4 - Alpha (May 16 - 2012) ================================================ diff --git a/init.lua b/init.lua index fadbbf9..af1b09f 100644 --- a/init.lua +++ b/init.lua @@ -9,7 +9,7 @@ loveframes = {} -- library info loveframes.info = {} loveframes.info.author = "Nikolai Resokav" -loveframes.info.version = "0.9.1.4" +loveframes.info.version = "0.9.1.5" loveframes.info.stage = "Alpha" -- library configurations diff --git a/objects/list.lua b/objects/list.lua index 2509039..17b4a10 100644 --- a/objects/list.lua +++ b/objects/list.lua @@ -262,7 +262,7 @@ function list:CalculateSize() local scrollbar = scrollbody:new(self, display) table.insert(self.internals, scrollbar) self.vbar = true - self:GetScrollBar().autoscroll = true + self:GetScrollBar().autoscroll = self.autoscroll end else @@ -291,7 +291,7 @@ function list:CalculateSize() local scrollbar = scrollbody:new(self, display) table.insert(self.internals, scrollbar) self.hbar = true - self:GetScrollBar().autoscroll = true + self:GetScrollBar().autoscroll = self.autoscroll end else