0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 18:12:40 +00:00
This commit is contained in:
David Bolack
2024-05-20 16:21:02 -05:00
parent bacdd65025
commit 835ca0de32
2 changed files with 14 additions and 8 deletions

View File

@@ -94,6 +94,11 @@ const Editor = createClass({
},
componentDidUpdate : function(prevProps, prevState, snapshot) {
console.log(this.props);
console.log(prevProps);
console.log(this.state);
console.log(prevState);
this.highlightCustomMarkdown();
if(prevProps.moveBrew !== this.props.moveBrew) {
this.brewJump();
@@ -126,7 +131,7 @@ const Editor = createClass({
if(e.keyCode == SCROLLLOCK_KEY) {
liveScroll = !liveScroll;
}
if(!(e.ctrlKey || e.metaKey)) return;
// Handle CTRL-HOME and CTRL-END

View File

@@ -15,13 +15,14 @@ const SplitPane = createClass({
getInitialState : function() {
return {
currentDividerPos : null,
windowWidth : 0,
isDragging : false,
moveSource : false,
moveBrew : false,
liveScroll : true,
showMoveArrows : true
currentDividerPos : null,
windowWidth : 0,
isDragging : false,
moveSource : false,
moveBrew : false,
liveScroll : true,
viewablePageNumber : 0,
showMoveArrows : true
};
},