We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53df0b3 commit 932a3c9Copy full SHA for 932a3c9
plugins/indent.js
@@ -137,5 +137,17 @@
137
input_element.selectionEnd = selection_end + number_indents + 1;
138
139
codeInput.update(input_element.value);
140
+
141
142
+ // Update scrolls
143
+ input_element.scrollLeft = 0;
144
+ // Move down 1 line
145
+ let lineHeight = Number(getComputedStyle(input_element).lineHeight.split(0, -2));
146
+ console.log(getComputedStyle(input_element).lineHeight);
147
+ if(lineHeight == NaN && getComputedStyle(input_element).lineHeight.split(-2) == "px") {
148
+ input_element.scrollTop += lineHeight;
149
+ } else {
150
+ input_element.scrollTop += 20; // px
151
+ }
152
}
153
0 commit comments