filter input bugfix
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user