snap.love/0037-on_resize

11 lines
279 B
Plaintext
Raw Normal View History

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
local buffer_height = math.max(node.h, 3*node.editor.line_height)
if sy >= node.y and sy < node.y+buffer_height then
return node
end
end
end
end