Reduced ElementScrollFader height minimum

This commit is contained in:
2018-06-17 13:00:24 +10:00
parent 13614d2cdc
commit c52c04db63

View File

@ -61,7 +61,7 @@ class ElementScrollFader extends React.Component {
//Get bounds //Get bounds
var rect = this.refs.fader.getBoundingClientRect(); var rect = this.refs.fader.getBoundingClientRect();
//If our top is at least half way UP the page, show //If our top is at least half way UP the page, show
if(rect.top > window.innerHeight / 2) return; if(rect.top > window.innerHeight / 1.5) return;
this.setState({visible: true}); this.setState({visible: true});
this.detachListener();//stop Listening this.detachListener();//stop Listening