prevent rendering tooltip when alpha is 0

This commit is contained in:
takase1121 2021-03-20 00:28:49 +00:00
parent aee602ea2f
commit d191e8ee34
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ function TreeView:draw()
end
self:draw_scrollbar()
if self.hovered_item then
if self.hovered_item and self.tooltip.alpha > 0 then
core.root_view:defer_draw(self.draw_tooltip, self)
end
end