<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>tekKonfigScroll.lua</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -23,15 +23,21 @@ frame:SetScript(&quot;OnShow&quot;, function(self)
 	frame:SetPoint(&quot;RIGHT&quot;)
 	frame:SetHeight(1000)
 
-	local LINEHEIGHT, MAXOFFSET = 50, -550
+	local scrollbar, upbutt, downbutt = LibStub(&quot;tekKonfig-Scroll&quot;).new(group, 6)
+	scrollbar:SetMinMaxValues(0,550)
+	scrollbar:SetValue(0)
+
+	local f = scrollbar:GetScript(&quot;OnValueChanged&quot;)
+	scrollbar:SetScript(&quot;OnValueChanged&quot;, function(self, value, ...)
+		scroll:SetVerticalScroll(value)
+		frame:SetPoint(&quot;TOP&quot;, 0, value)
+		return f(self, value, ...)
+	end)
+
 	local offset = 0
 	scroll:UpdateScrollChildRect()
 	scroll:EnableMouseWheel(true)
-	scroll:SetScript(&quot;OnMouseWheel&quot;, function(self, val)
-		offset = math.max(math.min(offset + val*LINEHEIGHT, 0), MAXOFFSET)
-		self:SetVerticalScroll(-offset)
-		frame:SetPoint(&quot;TOP&quot;, 0, offset)
-	end)
+	scroll:SetScript(&quot;OnMouseWheel&quot;, function(self, val) scrollbar:SetValue(scrollbar:GetValue() - val*50) end)
 
 	local last
 	local fonts, needbackground = {</diff>
      <filename>sample.lua</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,7 @@
 tekKonfigAboutPanel.lua
 tekKonfigHeading.lua
 tekKonfigGroup.lua
+tekKonfigScroll.lua
 
 tekticles.lua
 sample.lua</diff>
      <filename>tekticles.toc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>52150aef3d70a4597c4b2a050afd3606f65cec66</id>
    </parent>
  </parents>
  <author>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/tekticles/commit/855af4739de77207790090d3471074eeaab53370</url>
  <id>855af4739de77207790090d3471074eeaab53370</id>
  <committed-date>2008-10-14T00:43:50-07:00</committed-date>
  <authored-date>2008-10-14T00:43:50-07:00</authored-date>
  <message>Add scroll bar to preview panel</message>
  <tree>d522c5232cded904e4b545535814ae8aeb4416a4</tree>
  <committer>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
