Skip to content

Commit

Permalink
imp - Improved mouse pointer in the TUI
Browse files Browse the repository at this point in the history
---

We've improved the mouse pointer detection in the interactive TUI.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Jul 18, 2024
1 parent 3af7fea commit 1d1ebd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Terminaux/Inputs/Interactive/InteractiveTuiTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ void UpdateSelectionBasedOnMouse(PointerEventContext mouse)
int oldPane = InteractiveTuiStatus.CurrentPane;
if (interactiveTui.SecondPaneInteractable)
{
if (mouse.Coordinates.x >= 2 && mouse.Coordinates.x <= SeparatorHalfConsoleWidthInterior - 1)
if (mouse.Coordinates.x >= 1 && mouse.Coordinates.x <= SeparatorHalfConsoleWidthInterior - 1)
{
if (InteractiveTuiStatus.CurrentPane != 1)
{
Expand All @@ -575,9 +575,9 @@ void UpdateSelectionBasedOnMouse(PointerEventContext mouse)
}
else
{
if (mouse.Coordinates.x >= SeparatorHalfConsoleWidth + 1 && mouse.Coordinates.x <= SeparatorHalfConsoleWidth + SeparatorHalfConsoleWidthInterior)
if (mouse.Coordinates.x >= SeparatorHalfConsoleWidth - 1)
return;
if (mouse.Coordinates.x <= 1)
if (mouse.Coordinates.x < 1)
return;
}
if (refresh)
Expand Down

0 comments on commit 1d1ebd9

Please sign in to comment.