From da30f475c9b43f8ae1bf0168d5cad3ca9fe892a9 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Thu, 14 Nov 2024 03:25:24 +0000 Subject: [PATCH] Unpack event object when it is not a click event --- gfx/event.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/event.lua b/gfx/event.lua index 3f38101..fc1816d 100644 --- a/gfx/event.lua +++ b/gfx/event.lua @@ -28,7 +28,7 @@ function Event.repositionEvent(evt, dX, dY) if Event.isClickEvent(evt) then return evt[1], evt[2], evt[3] + dX, evt[4] + dY else - return evt + return table.unpack(evt) end end