filter input bugfix

This commit is contained in:
Manuel Simon Hirsig
2016-08-08 13:09:10 +02:00
parent 6fd3e7d62d
commit ccd8f12469
2 changed files with 8 additions and 3 deletions
+7 -1
View File
@@ -531,6 +531,12 @@ do
scroll_frame:SetHeight(270)
scroll_frame:SetPoint('TOPLEFT', 348, -50)
scroll_frame:EnableMouse(true)
scroll_frame:EnableMouseWheel(true)
scroll_frame:SetScript('OnMouseWheel', function()
local child = this:GetScrollChild()
child:SetScale(max(.3, min(1, child:GetScale() + arg1/10)))
aux.log(child:GetEffectiveScale())
end)
scroll_frame:RegisterForDrag('LeftButton')
scroll_frame:SetScript('OnDragStart', function()
this.x, this.y = GetCursorPosition()
@@ -554,7 +560,7 @@ do
scroll_child:SetWidth(1)
scroll_child:SetHeight(1)
scroll_frame:SetScrollChild(scroll_child)
local display = aux.gui.label(scroll_child, aux.gui.config.large_font_size2)
local display = aux.gui.label(scroll_child, 24)
display:SetPoint('TOPLEFT', 0, 0)
display:SetJustifyH('LEFT')
display:SetJustifyV('TOP')