Tiny topmenu fix
This commit is contained in:
parent
ce411ec871
commit
8bd1293be7
|
@ -27,7 +27,7 @@ local function addButton(id, description, icon, callback, panel, toggle, front)
|
||||||
button:setTooltip(description)
|
button:setTooltip(description)
|
||||||
button:setIcon(resolvepath(icon, 3))
|
button:setIcon(resolvepath(icon, 3))
|
||||||
button.onMouseRelease = function(widget, mousePos, mouseButton)
|
button.onMouseRelease = function(widget, mousePos, mouseButton)
|
||||||
if widget:containsPoint(mousePos) and mouseButton ~= MouseMiddleButton then
|
if widget:containsPoint(mousePos) and mouseButton ~= MouseMidButton then
|
||||||
callback()
|
callback()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue