Tiny topmenu fix

This commit is contained in:
Sam 2014-02-22 02:21:09 +01:00
parent ce411ec871
commit 8bd1293be7
1 changed files with 1 additions and 1 deletions

View File

@ -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