Skip to content

Commit

Permalink
Fix scrolling bug (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyche authored Sep 2, 2023
1 parent babeda7 commit 82280e8
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 82280e8

Please sign in to comment.