react-window 1.8.9 → 1.8.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1151,7 +1151,7 @@ function createListComponent(_ref) {
1151
1151
  scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
1152
1152
  return {
1153
1153
  isScrolling: true,
1154
- scrollDirection: prevState.scrollOffset < scrollLeft ? 'forward' : 'backward',
1154
+ scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',
1155
1155
  scrollOffset: scrollOffset,
1156
1156
  scrollUpdateWasRequested: false
1157
1157
  };