0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 16:32: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) { componentDidUpdate : function(prevProps, prevState, snapshot) {
console.log(this.props);
console.log(prevProps);
console.log(this.state);
console.log(prevState);
this.highlightCustomMarkdown(); this.highlightCustomMarkdown();
if(prevProps.moveBrew !== this.props.moveBrew) { if(prevProps.moveBrew !== this.props.moveBrew) {
this.brewJump(); this.brewJump();
@@ -126,7 +131,7 @@ const Editor = createClass({
if(e.keyCode == SCROLLLOCK_KEY) { if(e.keyCode == SCROLLLOCK_KEY) {
liveScroll = !liveScroll; liveScroll = !liveScroll;
} }
if(!(e.ctrlKey || e.metaKey)) return; if(!(e.ctrlKey || e.metaKey)) return;
// Handle CTRL-HOME and CTRL-END // Handle CTRL-HOME and CTRL-END

View File

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