Skip to content

Commit

Permalink
fix scrollDirection when direction is RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinFrenze committed Nov 30, 2022
1 parent 51ec3f8 commit dd73de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createListComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ export default function createListComponent({
return {
isScrolling: true,
scrollDirection:
prevState.scrollOffset < scrollLeft ? 'forward' : 'backward',
prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',
scrollOffset,
scrollUpdateWasRequested: false,
};
Expand Down

0 comments on commit dd73de8

Please sign in to comment.