core: mouse selection when moving left before half-way point

If you have a cell "M" and you click before the mid-point of M on the
left side and then drag left, we should not select "M".
This commit is contained in:
Mitchell Hashimoto
2023-10-10 09:35:11 -07:00
parent 21ec39ed5d
commit a6d3d51945

View File

@ -1853,7 +1853,7 @@ fn dragLeftClickSingle(
// - Inverse logic for a point after the start.
const click_point = self.mouse.left_click_point;
const start: terminal.point.ScreenPoint = if (screen_point.before(click_point)) start: {
if (self.mouse.left_click_xpos > cell_xboundary) {
if (cell_start_xpos >= cell_xboundary) {
break :start click_point;
} else {
break :start if (click_point.x > 0) terminal.point.ScreenPoint{