0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 07:12:39 +00:00

Remove comments

This commit is contained in:
David Bolack
2025-10-09 20:24:01 -05:00
parent 460b12e356
commit 8fcadd87d4

View File

@@ -97,21 +97,6 @@ const Editor = createClass({
if(prevProps.moveSource !== this.props.moveSource)
this.sourceJump();
// if((prevProps.isDragging !== this.props.isDragging) && (this.props.isDragging) && (this.lastCursor == undefined)) {
// this.lastCursor = this.codeEditor.current.codeMirror.getCursor();
// const lastXY = this.codeEditor.current.codeMirror.getScrollInfo();
// const lastRowPos = this.codeEditor.current.codeMirror.heightAtLine(this.lastCursor.line, 'local', true);
// this.lastCursor.offset = Math.round(lastRowPos-lastXY.top);
// }
// if((prevProps.isDragging !== this.props.isDragging) && (!this.props.isDragging)) {
// const scroll = this.codeEditor.current.codeMirror.getScrollInfo();
// this.codeEditor.current.codeMirror.scrollTo(null,
// this.codeEditor.current.codeMirror.heightAtLine(this.lastCursor.line, 'local', true) - this.lastCursor.offset);
// this.codeEditor.current.setCursorPosition(this.lastCursor.line, this.lastCursor.ch);
// this.lastCursor = undefined;
// }
if(this.props.liveScroll) {
if(prevProps.currentBrewRendererPageNum !== this.props.currentBrewRendererPageNum) {
this.sourceJump(this.props.currentBrewRendererPageNum, false);
@@ -155,7 +140,7 @@ const Editor = createClass({
handleViewChange : function(newView){
this.props.setMoveArrows(newView === 'text');
this.setState({
view : newView
}, ()=>{