mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
Faster ScrollView. Try it with CharacterMap.
This commit is contained in:
@@ -271,9 +271,9 @@ namespace Terminal.Gui {
|
||||
return true;
|
||||
} else if (location <= barsize) {
|
||||
if (location > 1 && location >= b2)
|
||||
SetPosition (Math.Min (pos + barsize, Size));
|
||||
SetPosition (Math.Min (pos + (Size / location), Size - 1));
|
||||
else if (location <= b2 && pos > 0 || pos > 0)
|
||||
SetPosition (Math.Max (pos - barsize, 0));
|
||||
SetPosition (Math.Max (pos - (Size / barsize), 0));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user