Unpack event object when it is not a click event
This commit is contained in:
parent
dff74ce8b4
commit
da30f475c9
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user