From 5910096bc13e4b5d2af984433c4eadae486e85a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gardstr=C3=B6m?= Date: Tue, 2 Apr 2024 11:29:14 +0200 Subject: [PATCH] don't scroll to active line this behaviour is very intrusive when editing a long file, making the editor scroll to the active line even if it's not in view --- www/src/js/editor/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/src/js/editor/index.ts b/www/src/js/editor/index.ts index d4f0d66..5327f83 100644 --- a/www/src/js/editor/index.ts +++ b/www/src/js/editor/index.ts @@ -117,7 +117,8 @@ class IC10Editor { that.active_line_markers.set(id, session.addMarker(new Range(active_line, 0, active_line, 1), "vm_ic_active_line", "fullLine", true)); if (that.active_session == id) { // editor.resize(true); - that.aceEditor.scrollToLine(active_line, true, true, ()=>{}) + // TODO: Scroll to line if vm was stepped + //that.aceEditor.scrollToLine(active_line, true, true, ()=>{}) } } }