Skip to content

Commit

Permalink
Fix scrollDirection when direction is RTL (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Nov 22, 2023
2 parents 6ff5694 + dd73de8 commit 7853dd3
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 7853dd3

Please sign in to comment.