Commit 71409f8
authored
Avoid scrolling when the search is open (#19775)
When text scrolls in and out of view, depending on the length
of the scrollback and latency of input, `GetSearchHighlightFocused`
would change which would trigger a `ScrollToSearchHighlight` call.
This PR changes the behavior such that only actively changing the
search mask triggers a search (typing text or pressing enter).
Closes #19754
## Validation Steps Performed
* Brining text in and out of view doesn't scroll ✅
* Toggling the aA button scrolls results into view ✅1 parent 6723ca2 commit 71409f8
File tree
4 files changed
+46
-26
lines changed- src/cascadia/TerminalControl
4 files changed
+46
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1736 | 1736 | | |
1737 | 1737 | | |
1738 | 1738 | | |
1739 | | - | |
| 1739 | + | |
1740 | 1740 | | |
1741 | 1741 | | |
1742 | 1742 | | |
| |||
1745 | 1745 | | |
1746 | 1746 | | |
1747 | 1747 | | |
1748 | | - | |
| 1748 | + | |
1749 | 1749 | | |
1750 | 1750 | | |
1751 | | - | |
1752 | | - | |
1753 | | - | |
1754 | | - | |
1755 | | - | |
1756 | | - | |
1757 | 1751 | | |
1758 | 1752 | | |
1759 | 1753 | | |
| |||
1762 | 1756 | | |
1763 | 1757 | | |
1764 | 1758 | | |
1765 | | - | |
| 1759 | + | |
1766 | 1760 | | |
1767 | 1761 | | |
1768 | 1762 | | |
1769 | 1763 | | |
1770 | 1764 | | |
1771 | 1765 | | |
| 1766 | + | |
1772 | 1767 | | |
1773 | | - | |
1774 | | - | |
1775 | | - | |
1776 | | - | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
1777 | 1771 | | |
1778 | 1772 | | |
1779 | 1773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
718 | | - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
719 | 726 | | |
720 | 727 | | |
721 | 728 | | |
| |||
749 | 756 | | |
750 | 757 | | |
751 | 758 | | |
752 | | - | |
753 | | - | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
754 | 768 | | |
755 | 769 | | |
756 | 770 | | |
| |||
769 | 783 | | |
770 | 784 | | |
771 | 785 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
777 | 795 | | |
778 | 796 | | |
779 | 797 | | |
| |||
3742 | 3760 | | |
3743 | 3761 | | |
3744 | 3762 | | |
3745 | | - | |
3746 | | - | |
| 3763 | + | |
| 3764 | + | |
| 3765 | + | |
| 3766 | + | |
| 3767 | + | |
| 3768 | + | |
| 3769 | + | |
| 3770 | + | |
| 3771 | + | |
3747 | 3772 | | |
3748 | 3773 | | |
3749 | 3774 | | |
| |||
0 commit comments