mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-26 18:12:40 +00:00
WIP
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user