VirtualScroller: fix iOS jumpiness case

This commit is contained in:
Liam Fitzgerald 2021-03-04 09:27:20 +10:00
parent 0b1926294f
commit a2de2e61f7
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -110,12 +110,10 @@ export default class VirtualScroller<T> extends Component<VirtualScrollerProps<T
scrollbar: 0
};
this.updateVisible = IS_IOS
? _.debounce(this.updateVisible.bind(this), 100)
: this.updateVisible.bind(this);
this.updateVisible = this.updateVisible.bind(this);
this.invertedKeyHandler = this.invertedKeyHandler.bind(this);
this.onScroll = IS_IOS ? _.debounce(this.onScroll.bind(this), 150) : this.onScroll.bind(this);
this.onScroll = IS_IOS ? _.debounce(this.onScroll.bind(this), 400) : this.onScroll.bind(this);
this.scrollKeyMap = this.scrollKeyMap.bind(this);
this.setWindow = this.setWindow.bind(this);
}