Mercurial > wow > askmrrobot
diff ui/AmrUiScrollFrame.lua @ 133:a0894ffebd15 v62
Bug fixes and tweaks for 8.0.
author | yellowfive |
---|---|
date | Wed, 25 Jul 2018 12:17:24 -0700 |
parents | 0515882856f1 |
children |
line wrap: on
line diff
--- a/ui/AmrUiScrollFrame.lua Wed Jul 18 16:44:04 2018 -0700 +++ b/ui/AmrUiScrollFrame.lua Wed Jul 25 12:17:24 2018 -0700 @@ -11,7 +11,7 @@ -- Lua APIs local pairs, assert, type = pairs, assert, type -local min, max, floor, abs = math.min, math.max, math.floor, math.abs +local min, max, floor = math.min, math.max, math.floor -- WoW APIs local CreateFrame, UIParent = CreateFrame, UIParent @@ -107,7 +107,7 @@ local status = self.status or self.localstatus local height, viewheight = self.scrollframe:GetHeight(), self.content:GetHeight() local offset = status.offset or 0 - local curvalue = self.scrollbar:GetValue() + --local curvalue = self.scrollbar:GetValue() -- Give us a margin of error of 2 pixels to stop some conditions that i would blame on floating point inaccuracys -- No-one is going to miss 2 pixels at the bottom of the frame, anyhow! if viewheight < height + 2 then