Skip to content

Commit

Permalink
Fix scrolling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyche committed Sep 2, 2023
1 parent 895b9db commit 9a29b8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export function Calendar({
// don't update past midnight
setViewBounds(prevBounds => {
if (prevBounds.end! <= MAX.minus(SCROLL_AMT)) {
return prevBounds.mapEndpoints(datetime => datetime.minus(SCROLL_AMT));
return prevBounds.mapEndpoints(datetime => datetime.plus(SCROLL_AMT));
} else {
return prevBounds;
}
Expand Down

0 comments on commit 9a29b8b

Please sign in to comment.