Skip to content

Commit

Permalink
Load scrolled down, #80
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Jan 19, 2018
1 parent e4eaccc commit fa05b1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/pages/BuildLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export default class BuildLog extends React.Component{
this.log.addEventListener("wheel", this.scrolled, { passive: true });
this.log.addEventListener("touchmove", this.scrolled, { passive: true });

if(this.props.status === "pending"){
setTimeout(()=>this.last.scrollIntoView({ behavior: "instant" }), 0);
}
}

componentWillUnmount(){
Expand Down

0 comments on commit fa05b1e

Please sign in to comment.