[PR #1248] Captured pointer for SwapChainPanel and ScrollBar separately #24541

Open
opened 2026-01-31 09:03:54 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/1248

State: closed
Merged: Yes


Summary of the Pull Request

  • capturing the SwapChainPanel and ScrollBar separately:
    • it used to be that the root would take pointer events. So both the scroll bar AND the terminal would respond to a mouse drag on the scroll bar. Yuck!
  • Renamed MouseClickHandler and MouseMovedHandler to more generic names (since they handle touch events too).

References

So, this fixes #950, but also doesn't. The reason #950 crashes is because the copy is waaaaaay too big. This will make it so that you can't make the selection that unreasonably big anymore. That said, there's still other ways to make massive copy selections so I think there's two relevant issues here:

  • #1246 Copy large selection --> crash
  • #1247 While selecting, dragging mouse over top/bottom border scrolls.

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/1248 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request - capturing the SwapChainPanel and ScrollBar separately: - it used to be that the root would take pointer events. So both the scroll bar AND the terminal would respond to a mouse drag on the scroll bar. Yuck! - Renamed MouseClickHandler and MouseMovedHandler to more generic names (since they handle touch events too). <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References So, this fixes #950, but also doesn't. The reason #950 crashes is because the copy is waaaaaay too big. This will make it so that you can't make the selection that unreasonably big anymore. That said, there's still other ways to make massive copy selections so I think there's two relevant issues here: - #1246 Copy large selection --> crash - #1247 While selecting, dragging mouse over top/bottom border scrolls. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #950 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] Tests added/passed * [x] Requires documentation to be updated * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan.
claunia added the pull-request label 2026-01-31 09:03:54 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24541