0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 23:32:58 +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 {
viewablePageNumber : 0,
height : 0,
willChange : 'auto',
willChange : 'auto',
isMounted : false,
usePPR : true,
@@ -126,19 +126,19 @@ const BrewRenderer = createClass({
});
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(){
this.setState({willChange : 'transform'});
this.setState({ willChange: 'transform' });
},
/**
* Unload smooth scrolling optimizations when mouse leaves rendering panel
**/
unprepareScroll : function(){
this.setState({willChange : 'auto'});
this.setState({ willChange: 'auto' });
},
render : function(){
@@ -150,7 +150,7 @@ const BrewRenderer = createClass({
onMouseOut={this.unprepareScroll}
ref='main'
style={{ height: this.state.height,
willChange: this.state.willChange}}>
willChange: this.state.willChange }}>
<ErrorBar errors={this.props.errors} />
<RenderWarnings />