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