This commit is contained in:
Robert Jelic
2023-05-03 22:49:16 +02:00

View File

@@ -26,7 +26,7 @@ return function(name, basalt)
updateSymbolSize() updateSymbolSize()
local function mouseEvent(self, button, x, y) local function mouseEvent(self, button, x, y)
local obx, oby = self:getPosition() local obx, oby = self:getAbsolutePosition()
local w,h = self:getSize() local w,h = self:getSize()
updateSymbolSize() updateSymbolSize()
local size = barType == "vertical" and h or w local size = barType == "vertical" and h or w
@@ -101,8 +101,8 @@ return function(name, basalt)
return self return self
end, end,
mouseHandler = function(self, button, x, y) mouseHandler = function(self, button, x, y, ...)
if (base.mouseHandler(self, button, x, y)) then if (base.mouseHandler(self, button, x, y, ...)) then
mouseEvent(self, button, x, y) mouseEvent(self, button, x, y)
return true return true
end end