Skip to content

Commit

Permalink
Fix #749, scrolling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
OlafSzmidt committed Aug 21, 2018
1 parent b2a73ba commit 2c9a5f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game_frontend/src/components/IDEConsole/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export default class IDEConsole extends Component {
}

handleScroll = event => {
let srcElement = event.srcElement
this.setState({...this.state, scrolledToBottom: srcElement.offsetHeight + srcElement.scrollTop === srcElement.scrollHeight})
let target = event.srcElement || event.target
this.setState({...this.state, scrolledToBottom: target.offsetHeight + target.scrollTop === target.scrollHeight})
}

componentDidMount () {
Expand Down

0 comments on commit 2c9a5f0

Please sign in to comment.