mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-25 13:16:11 +03:00
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:
@ -1853,7 +1853,7 @@ fn dragLeftClickSingle(
|
|||||||
// - Inverse logic for a point after the start.
|
// - Inverse logic for a point after the start.
|
||||||
const click_point = self.mouse.left_click_point;
|
const click_point = self.mouse.left_click_point;
|
||||||
const start: terminal.point.ScreenPoint = if (screen_point.before(click_point)) start: {
|
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;
|
break :start click_point;
|
||||||
} else {
|
} else {
|
||||||
break :start if (click_point.x > 0) terminal.point.ScreenPoint{
|
break :start if (click_point.x > 0) terminal.point.ScreenPoint{
|
||||||
|
Reference in New Issue
Block a user