snap.love/0037-on_resize

9 lines
213 B
Plaintext

on_resize = function(sx,sy)
for _,node in pairs(Nodes) do
if sx >= node.x+node.w+20 and sx < node.x+node.w+24 then
if sy >= node.y and sy < node.y+node_height(node) then
return node
end
end
end
end