[PR #10642] [MERGED] Fix mouse coordinates when viewport is scrolled #28156

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10642
Author: @PankajBhojwani
Created: 7/13/2021
Status: Merged
Merged: 7/20/2021
Merged by: @undefined

Base: mainHead: dev/pabhoj/mouse_viewport_fix


📝 Commits (10+)

📊 Changes

2 files changed (+96 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalControl/ControlInteractivity.cpp (+6 -1)
📝 src/cascadia/UnitTests_Control/ControlInteractivityTests.cpp (+90 -0)

📄 Description

Summary of the Pull Request

Adjust the y-coordinate of the mouse coordinates we send based on how much the viewport has been scrolled

Validation Steps Performed

Validated: cannot repro the issue in #10190

Closes #10190


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/10642 **Author:** [@PankajBhojwani](https://github.com/PankajBhojwani) **Created:** 7/13/2021 **Status:** ✅ Merged **Merged:** 7/20/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/pabhoj/mouse_viewport_fix` --- ### 📝 Commits (10+) - [`ecacf2b`](https://github.com/microsoft/terminal/commit/ecacf2bf2e5a843e340aa43fe176b95c7cdd5d57) adjust sent coord - [`7f97dfd`](https://github.com/microsoft/terminal/commit/7f97dfd53c112e8bda240c0a6d7aa97b632b25fb) ignore clicks outside active region - [`3e38fb2`](https://github.com/microsoft/terminal/commit/3e38fb2e34422e2dca16aa88f08656720478ac40) readability - [`9867c88`](https://github.com/microsoft/terminal/commit/9867c8852254b9992c0e514701114af39ff18f85) fix - [`b4e1aea`](https://github.com/microsoft/terminal/commit/b4e1aea18921d8df6601392317ee4d65f025ff67) has - [`52a19da`](https://github.com/microsoft/terminal/commit/52a19da4ff044460f8ee3d00264787ae258a92fe) test - [`a7ce069`](https://github.com/microsoft/terminal/commit/a7ce069241fca0840472cadb96a797d1aa7fbb33) dont need nomousedown - [`02f9aa3`](https://github.com/microsoft/terminal/commit/02f9aa3eac531964283b2fcdd6ac49160835e461) Merge branch 'main' of https://github.com/microsoft/terminal into dev/pabhoj/mouse_viewport_fix - [`a2892f0`](https://github.com/microsoft/terminal/commit/a2892f056776b007074a486350f9ec0279318817) Merge branch 'dev/pabhoj/mouse_viewport_fix' of https://github.com/microsoft/terminal into dev/pabhoj/mouse_viewport_fix - [`8976a22`](https://github.com/microsoft/terminal/commit/8976a22a60fcb7f846452a934f40ae5f6c875ebe) conflict ### 📊 Changes **2 files changed** (+96 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/ControlInteractivity.cpp` (+6 -1) 📝 `src/cascadia/UnitTests_Control/ControlInteractivityTests.cpp` (+90 -0) </details> ### 📄 Description ## Summary of the Pull Request Adjust the y-coordinate of the mouse coordinates we send based on how much the viewport has been scrolled ## Validation Steps Performed Validated: cannot repro the issue in #10190 Closes #10190 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:26:41 +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#28156