Skip to content

Commit

Permalink
Change the order of logical OR
Browse files Browse the repository at this point in the history
  • Loading branch information
OlafSzmidt committed Aug 21, 2018
1 parent 2c9a5f0 commit 1b5cd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game_frontend/src/components/IDEConsole/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class IDEConsole extends Component {
}

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

Expand Down

0 comments on commit 1b5cd0e

Please sign in to comment.