0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 22:32:45 +00:00

Jump based on scroll position, not cursor position

This commit is contained in:
Trevor Buckner
2024-09-10 01:11:28 -04:00
parent ec74b994d7
commit 45a9501459
2 changed files with 12 additions and 4 deletions

View File

@@ -399,6 +399,9 @@ const CodeEditor = createClass({
getCursorPosition : function(){
return this.codeMirror.getCursor();
},
getViewport : function(){
return this.codeMirror.getViewport();
},
updateSize : function(){
this.codeMirror.refresh();
},