Merge pull request #782 from Nightwing13/patch-2
[Fix] Pointer Bug in ToolBar plugin
This commit is contained in:
commit
186248911a
|
@ -84,11 +84,12 @@ end
|
||||||
|
|
||||||
function ToolbarView:on_mouse_pressed(button, x, y, clicks)
|
function ToolbarView:on_mouse_pressed(button, x, y, clicks)
|
||||||
local caught = ToolbarView.super.on_mouse_pressed(self, button, x, y, clicks)
|
local caught = ToolbarView.super.on_mouse_pressed(self, button, x, y, clicks)
|
||||||
if caught then return end
|
if caught then return caught end
|
||||||
core.set_active_view(core.last_active_view)
|
core.set_active_view(core.last_active_view)
|
||||||
if self.hovered_item then
|
if self.hovered_item then
|
||||||
command.perform(self.hovered_item.command)
|
command.perform(self.hovered_item.command)
|
||||||
end
|
end
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue