|
@@ -284,10 +284,10 @@ class Filmstrip extends PureComponent <Props> {
|
284
|
284
|
* @param {Object} data - Information about the rendered items.
|
285
|
285
|
* @returns {void}
|
286
|
286
|
*/
|
287
|
|
- _onListItemsRendered({ overscanStartIndex, overscanStopIndex }) {
|
|
287
|
+ _onListItemsRendered({ visibleStartIndex, visibleStopIndex }) {
|
288
|
288
|
const { dispatch } = this.props;
|
289
|
289
|
|
290
|
|
- dispatch(setVisibleRemoteParticipants(overscanStartIndex, overscanStopIndex));
|
|
290
|
+ dispatch(setVisibleRemoteParticipants(visibleStartIndex, visibleStopIndex));
|
291
|
291
|
}
|
292
|
292
|
|
293
|
293
|
_onGridItemsRendered: Object => void;
|
|
@@ -299,14 +299,14 @@ class Filmstrip extends PureComponent <Props> {
|
299
|
299
|
* @returns {void}
|
300
|
300
|
*/
|
301
|
301
|
_onGridItemsRendered({
|
302
|
|
- overscanColumnStartIndex,
|
303
|
|
- overscanColumnStopIndex,
|
304
|
|
- overscanRowStartIndex,
|
305
|
|
- overscanRowStopIndex
|
|
302
|
+ visibleColumnStartIndex,
|
|
303
|
+ visibleColumnStopIndex,
|
|
304
|
+ visibleRowStartIndex,
|
|
305
|
+ visibleRowStopIndex
|
306
|
306
|
}) {
|
307
|
307
|
const { _columns, dispatch } = this.props;
|
308
|
|
- const startIndex = (overscanRowStartIndex * _columns) + overscanColumnStartIndex;
|
309
|
|
- const endIndex = (overscanRowStopIndex * _columns) + overscanColumnStopIndex;
|
|
308
|
+ const startIndex = (visibleRowStartIndex * _columns) + visibleColumnStartIndex;
|
|
309
|
+ const endIndex = (visibleRowStopIndex * _columns) + visibleColumnStopIndex;
|
310
|
310
|
|
311
|
311
|
dispatch(setVisibleRemoteParticipants(startIndex, endIndex));
|
312
|
312
|
}
|
|
@@ -345,6 +345,7 @@ class Filmstrip extends PureComponent <Props> {
|
345
|
345
|
initialScrollTop = { 0 }
|
346
|
346
|
itemKey = { this._gridItemKey }
|
347
|
347
|
onItemsRendered = { this._onGridItemsRendered }
|
|
348
|
+ overscanRowCount = { 1 }
|
348
|
349
|
rowCount = { _rows }
|
349
|
350
|
rowHeight = { _thumbnailHeight + TILE_VERTICAL_MARGIN }
|
350
|
351
|
width = { _filmstripWidth }>
|
|
@@ -363,6 +364,7 @@ class Filmstrip extends PureComponent <Props> {
|
363
|
364
|
itemKey: this._listItemKey,
|
364
|
365
|
itemSize: 0,
|
365
|
366
|
onItemsRendered: this._onListItemsRendered,
|
|
367
|
+ overscanCount: 1,
|
366
|
368
|
width: _filmstripWidth,
|
367
|
369
|
style: {
|
368
|
370
|
willChange: 'auto'
|