<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>tekKonfigScroll.lua</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -132,7 +132,7 @@ frame:SetScript(&quot;OnShow&quot;, function(frame)
 		if not anchor then row:SetPoint(&quot;TOP&quot;, subtitle, &quot;BOTTOM&quot;, 0, -16)
 		else row:SetPoint(&quot;TOP&quot;, anchor, &quot;BOTTOM&quot;, 0, -ROWGAP) end
 		row:SetPoint(&quot;LEFT&quot;, EDGEGAP, 0)
-		row:SetPoint(&quot;RIGHT&quot;, -EDGEGAP, 0)
+		row:SetPoint(&quot;RIGHT&quot;, -EDGEGAP*2-8, 0)
 		row:SetHeight(ROWHEIGHT)
 		anchor = row
 		rows[i] = row
@@ -211,12 +211,24 @@ frame:SetScript(&quot;OnShow&quot;, function(frame)
 	Refresh()
 
 
-	frame:EnableMouseWheel()
-	frame:SetScript(&quot;OnMouseWheel&quot;, function(self, val)
-		offset = math.max(math.min(offset - math.floor(val*#rows/2), NUMADDONS-#rows), 0)
+	local scrollbar = LibStub(&quot;tekKonfig-Scroll&quot;).new(frame, nil, #rows/2)
+	scrollbar:ClearAllPoints()
+	scrollbar:SetPoint(&quot;TOP&quot;, rows[1], 0, -16)
+	scrollbar:SetPoint(&quot;BOTTOM&quot;, rows[#rows], 0, 16)
+	scrollbar:SetPoint(&quot;RIGHT&quot;, -16, 0)
+	scrollbar:SetMinMaxValues(0, NUMADDONS-#rows)
+	scrollbar:SetValue(0)
+
+	local f = scrollbar:GetScript(&quot;OnValueChanged&quot;)
+	scrollbar:SetScript(&quot;OnValueChanged&quot;, function(self, value, ...)
+		offset = value
 		Refresh()
+		return f(self, value, ...)
 	end)
 
+	frame:EnableMouseWheel()
+	frame:SetScript(&quot;OnMouseWheel&quot;, function(self, val) scrollbar:SetValue(scrollbar:GetValue() - val*#rows/2) end)
+
 
 	local enableall = MakeButton()
 	enableall:SetPoint(&quot;BOTTOMLEFT&quot;, 16, 16)</diff>
      <filename>Ampere.lua</filename>
    </modified>
    <modified>
      <diff>@@ -11,6 +11,7 @@
 ## X-LoadOn-Always: delayed
 
 LibStub.lua
+tekKonfigScroll.lua
 tekKonfigAboutPanel.lua
 CallbackHandler-1.0.lua
 LibDataBroker-1.1\LibDataBroker-1.1.lua</diff>
      <filename>Ampere.toc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0df51b59d864742dbd2e6def96a05fa1e5628341</id>
    </parent>
  </parents>
  <author>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/ampere/commit/5ea22dd323febfcea5cc86233be95915fc807928</url>
  <id>5ea22dd323febfcea5cc86233be95915fc807928</id>
  <committed-date>2008-10-14T01:07:41-07:00</committed-date>
  <authored-date>2008-10-14T01:07:41-07:00</authored-date>
  <message>Add scrollbar</message>
  <tree>64ffcd5fc67cb7224f5092eb9ebc304b2055a9e0</tree>
  <committer>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
