Skip to content

Move PointerId, focus and in-bounds handling down into Interactivity#20017

Merged
carlos-zamora merged 2 commits intomainfrom
dev/duhowett/move-pointerid-down
Mar 31, 2026
Merged

Move PointerId, focus and in-bounds handling down into Interactivity#20017
carlos-zamora merged 2 commits intomainfrom
dev/duhowett/move-pointerid-down

Conversation

@DHowett
Copy link
Copy Markdown
Member

@DHowett DHowett commented Mar 25, 2026

These do not notionally belong to TermControl; as we prepare to move automatic scrolling down into the Interactivity layer (for WpfTerminalControl to depend on,) we're going to need to track these in Interactivity too.

This also converts the arguments from the winrt-specific Foundation::Point to Core::Point, and simplifies some of the signatures to no longer pass things we do not need to pass.

Right now, this should result in no functional change.

Some of the tests are sensitive to the fact that we never loaded SPI_GETWHEELSCROLLLINES
and instead defaulted to 1. They've been hammered back into shape.

These do not notionally belong to TermControl; as we prepare to move
automatic scrolling down into the Interactivity layer (for
WpfTerminalControl to depend on,) we're going to need to track these in
Interactivity too.

This also converts the arguments from the winrt-specific
Foundation::Point to Core::Point, and simplifies some of the signatures
to no longer pass things we do not need to pass.

Right now, this should result in no functional change.
}

void ControlInteractivity::PointerPressed(Control::MouseButtonState buttonState,
void ControlInteractivity::PointerPressed(const uint32_t /*pointerId*/,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious: what's the plan for pointerId when we do use it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well! Autoscroll uses it!

6e5f5a9

when we move autoscroll down into the interactivity layer, it needs to know which pointer moved out-of-frame and caused the scroll

@carlos-zamora carlos-zamora merged commit c334f91 into main Mar 31, 2026
20 checks passed
@carlos-zamora carlos-zamora deleted the dev/duhowett/move-pointerid-down branch March 31, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants