From 46aaf57b45fd6a572c9b8c203d065395d9e80de1 Mon Sep 17 00:00:00 2001 From: Nightwing <94565465+Nightwing13@users.noreply.github.com> Date: Thu, 30 Dec 2021 06:26:58 +0900 Subject: [PATCH 1/2] [Fix] Pointer Bug in ToolBar plugin Fixes an issue where the pointer moves down when "open user module" button is spammed --- data/plugins/toolbarview.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/plugins/toolbarview.lua b/data/plugins/toolbarview.lua index bfd71138..debdd2df 100644 --- a/data/plugins/toolbarview.lua +++ b/data/plugins/toolbarview.lua @@ -84,11 +84,12 @@ end function ToolbarView:on_mouse_pressed(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 false end core.set_active_view(core.last_active_view) if self.hovered_item then command.perform(self.hovered_item.command) end + return true end From 60322a93a877d54bd451edfe61381ea8f44a9993 Mon Sep 17 00:00:00 2001 From: Nightwing <94565465+Nightwing13@users.noreply.github.com> Date: Thu, 30 Dec 2021 11:12:24 +0900 Subject: [PATCH 2/2] Update toolbarview.lua --- data/plugins/toolbarview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/toolbarview.lua b/data/plugins/toolbarview.lua index debdd2df..1a879877 100644 --- a/data/plugins/toolbarview.lua +++ b/data/plugins/toolbarview.lua @@ -84,7 +84,7 @@ end function ToolbarView:on_mouse_pressed(button, x, y, clicks) local caught = ToolbarView.super.on_mouse_pressed(self, button, x, y, clicks) - if caught then return false end + if caught then return caught end core.set_active_view(core.last_active_view) if self.hovered_item then command.perform(self.hovered_item.command)