We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 167ff7c commit 9d33e89Copy full SHA for 9d33e89
1 file changed
src/cascadia/TerminalControl/ControlInteractivity.cpp
@@ -265,7 +265,12 @@ namespace winrt::Microsoft::Terminal::Control::implementation
265
const auto fontSizeInDips{ _core->FontSizeInDips() };
266
if (distance >= (std::min(fontSizeInDips.width(), fontSizeInDips.height()) / 4.f))
267
{
268
- _core->SetSelectionAnchor(terminalPosition);
+ // GH#9955.c: Make sure to use the temrinal location of the
269
+ // _touchdown_ point here. We want to start the selection
270
+ // from where the user initially clicked, not where they are
271
+ // now.
272
+ _core->SetSelectionAnchor(_getTerminalPosition(touchdownPoint));
273
+
274
// stop tracking the touchdown point
275
_singleClickTouchdownPos = std::nullopt;
276
}
0 commit comments