Skip to content

Commit

Permalink
fix - Fixed PAGE UP scrolling up two pages
Browse files Browse the repository at this point in the history
---

We've fixed the PAGE UP key in all the informational boxes scrolling up two pages instead of one.

---

Type: fix
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Jul 28, 2024
1 parent 1ebe280 commit e4c0f1a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Terminaux/Inputs/Styles/Infobox/InfoBoxButtonsColor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ void DoActionBasedOnButtonPress(PointerEventContext mouse)
}
break;
case ConsoleKey.E:
currIdx -= maxHeight * 2 - 1;
currIdx -= maxHeight;
if (currIdx < 0)
currIdx = 0;
break;
Expand Down
2 changes: 1 addition & 1 deletion Terminaux/Inputs/Styles/Infobox/InfoBoxColor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ void DoActionBasedOnButtonPress(PointerEventContext mouse)
exiting = true;
break;
case ConsoleKey.PageUp:
currIdx -= maxHeight * 2 - 1;
currIdx -= maxHeight;
if (currIdx < 0)
currIdx = 0;
delay = false;
Expand Down
2 changes: 1 addition & 1 deletion Terminaux/Inputs/Styles/Infobox/InfoBoxSelectionColor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ void DoActionBasedOnButtonPress(PointerEventContext mouse)
ScreenTools.CurrentScreen?.RequireRefresh();
break;
case ConsoleKey.E:
currIdx -= maxHeight * 2 - 1;
currIdx -= maxHeight;
if (currIdx < 0)
currIdx = 0;
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ void DoActionBasedOnButtonPress(PointerEventContext mouse)
ScreenTools.CurrentScreen?.RequireRefresh();
break;
case ConsoleKey.E:
currIdx -= maxHeight * 2 - 1;
currIdx -= maxHeight;
if (currIdx < 0)
currIdx = 0;
break;
Expand Down
2 changes: 1 addition & 1 deletion Terminaux/Inputs/Styles/Infobox/InfoBoxSliderColor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ void DoActionBasedOnButtonPress(PointerEventContext mouse)
selected = maxPos;
break;
case ConsoleKey.E:
currIdx -= maxHeight * 2 - 1;
currIdx -= maxHeight;
if (currIdx < minPos)
currIdx = minPos;
break;
Expand Down

0 comments on commit e4c0f1a

Please sign in to comment.