react-window 1.8.9 → 1.8.11

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.cjs.js CHANGED
@@ -1157,7 +1157,7 @@ function createListComponent(_ref) {
1157
1157
  scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
1158
1158
  return {
1159
1159
  isScrolling: true,
1160
- scrollDirection: prevState.scrollOffset < scrollLeft ? 'forward' : 'backward',
1160
+ scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',
1161
1161
  scrollOffset: scrollOffset,
1162
1162
  scrollUpdateWasRequested: false
1163
1163
  };