Skip to content

Commit

Permalink
Fix overflow in scroll-to-bottom (#9389)
Browse files Browse the repository at this point in the history
## PR Checklist
* [x] Closes #9353
* [x] CLA signed.
* [ ] Tests added/passed
* [ ] Documentation updated.
* [ ] Schema updated.
* [ ] I've discussed this with core contributors already.

(cherry picked from commit 1202f89)
  • Loading branch information
Don-Vito authored and DHowett committed Mar 15, 2021
1 parent fb4dab0 commit 7f1bdaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascadia/TerminalApp/TerminalTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ namespace winrt::TerminalApp::implementation
co_await winrt::resume_foreground(control.Dispatcher());

const auto currentOffset = control.GetScrollOffset();
control.ScrollViewport(currentOffset + delta);
control.ScrollViewport(::base::ClampAdd(currentOffset, delta));
}

// Method Description:
Expand Down

0 comments on commit 7f1bdaf

Please sign in to comment.