0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 13:52:38 +00:00

remove "in viewport" requirement for markdown highlight/pg numbers

This commit is contained in:
Gazook89
2021-12-03 20:20:40 -06:00
parent 372d33271d
commit 5cd45a1413
2 changed files with 11 additions and 21 deletions

View File

@@ -114,7 +114,6 @@ const CodeEditor = createClass({
// Note: codeMirror passes a copy of itself in this callback. cm === this.codeMirror. Either one works.
this.codeMirror.on('change', (cm)=>{this.props.onChange(cm.getValue());});
this.codeMirror.on('viewportChange', _.debounce((cm)=>{this.props.onChange(cm.getValue());}, 200));
this.updateSize();
},