wardley.love/0036-on_move_bar

10 lines
202 B
Plaintext

on_move_bar = function(sx,sy)
for _,node in pairs(Nodes) do
if sx >= node.x-10 and sx < node.x-10+node.w/2 then
if sy >= node.y-15-10 and sy < node.y-15 then
return node
end
end
end
end