Mouse_move + shrink fix

- Added mouse_move support (still not fully done but should work)
- fixed :shrink bug ignoring object size
This commit is contained in:
Robert Jelic
2022-09-13 21:55:22 +02:00
parent 4857753c08
commit f76ead42ce
11 changed files with 542 additions and 112 deletions

View File

@@ -596,6 +596,10 @@ return function(name)
self.parent:setBG(obx, oby + n - 1, bg)
self.parent:setFG(obx, oby + n - 1, fg)
end
if(self:isFocused())then
local anchx, anchy = self:getAnchorPosition()
self.parent:setCursor(true, anchx + textX - wIndex, anchy + textY - hIndex, self.fgColor)
end
end
end
end,