Check start visibility more often
This commit is contained in:
parent
684ab3bcb5
commit
641d031bdf
|
@ -30,6 +30,10 @@ class ChooseCharacters extends Component {
|
|||
window.removeEventListener('scroll', this.testIsStartVisible);
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
this.testIsStartVisible();
|
||||
}
|
||||
|
||||
testIsStartVisible() {
|
||||
if(this.startRef) {
|
||||
const rect = this.startRef.getBoundingClientRect();
|
||||
|
|
Loading…
Reference in a new issue