0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-11 13:22:39 +00:00

Lint fixes

This commit is contained in:
Trevor Buckner
2018-05-10 12:57:42 -04:00
committed by Rae2che5
parent a8a70c2d70
commit 004dc79eb2

View File

@@ -25,7 +25,7 @@ const BrewRenderer = createClass({
return { return {
viewablePageNumber : 0, viewablePageNumber : 0,
height : 0, height : 0,
willChange : 'auto', willChange : 'auto',
isMounted : false, isMounted : false,
usePPR : true, usePPR : true,
@@ -126,19 +126,19 @@ const BrewRenderer = createClass({
}); });
return this.lastRender; return this.lastRender;
}, },
/** /**
* Optimize for smooth scrolling when mouse enters the rendering panel * Optimize for smooth scrolling when mouse enters the rendering panel
**/ **/
prepareScroll : function(){ prepareScroll : function(){
this.setState({willChange : 'transform'}); this.setState({ willChange: 'transform' });
}, },
/** /**
* Unload smooth scrolling optimizations when mouse leaves rendering panel * Unload smooth scrolling optimizations when mouse leaves rendering panel
**/ **/
unprepareScroll : function(){ unprepareScroll : function(){
this.setState({willChange : 'auto'}); this.setState({ willChange: 'auto' });
}, },
render : function(){ render : function(){
@@ -150,7 +150,7 @@ const BrewRenderer = createClass({
onMouseOut={this.unprepareScroll} onMouseOut={this.unprepareScroll}
ref='main' ref='main'
style={{ height: this.state.height, style={{ height: this.state.height,
willChange: this.state.willChange}}> willChange: this.state.willChange }}>
<ErrorBar errors={this.props.errors} /> <ErrorBar errors={this.props.errors} />
<RenderWarnings /> <RenderWarnings />