pothi.love/0160-on.mouse_press

8 lines
166 B
Plaintext

on.mouse_press = function(x,y, mouse_button)
local node = to_text(x,y)
if node then
node.show_cursor = true
else
Pan = {x=Viewport.x+x,y=Viewport.y+y}
end
end