mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 23:32:58 +00:00
Lint fixes
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user