bugfix: pan to existing definitions

This commit is contained in:
Kartik K. Agaram 2023-11-16 08:40:50 -08:00
parent 43b160838e
commit 16be0916ae
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,10 @@ load_definition = function(name)
width=600,
bg=definition_background_color(name),
}
else
Viewport.x = Definitions[name].x-30
Viewport.y = Definitions[name].y-30
end
Cursor_node = Definitions[name]
Cursor_node.show_cursor = true
end
end