From f768375c94dcdc2cc99a2ca70fb3f31e28ddd5c0 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Wed, 26 Feb 2025 20:24:13 +0100 Subject: [PATCH] Workflow Test --- src/elements/Frame.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/elements/Frame.lua b/src/elements/Frame.lua index 6451b95..74bc2de 100644 --- a/src/elements/Frame.lua +++ b/src/elements/Frame.lua @@ -82,6 +82,19 @@ function Frame:mouse_click(button, x, y) end end +--- @shortDescription Handles mouse release events +--- @param button number The button that was released +--- @param x number The x position of the release +--- @param y number The y position of the release +--- @return boolean handled Whether the event was handled +--- @protected +function Frame:mouse_up(button, x, y) + self.dragging = false + self.dragStartX = nil + self.dragStartY = nil + return Container.mouse_up(self, button, x, y) +end + --- @shortDescription Handles mouse drag events --- @param button number The button that was clicked --- @param x number The x position of the drag position @@ -103,17 +116,4 @@ function Frame:mouse_drag(button, x, y) return false end ---- @shortDescription Handles mouse release events ---- @param button number The button that was released ---- @param x number The x position of the release ---- @param y number The y position of the release ---- @return boolean handled Whether the event was handled ---- @protected -function Frame:mouse_up(button, x, y) - self.dragging = false - self.dragStartX = nil - self.dragStartY = nil - return Container.mouse_up(self, button, x, y) -end - return Frame \ No newline at end of file