mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
The barSize should use the Scroll Viewport.
This commit is contained in:
@@ -71,7 +71,7 @@ internal class ScrollSlider : View
|
||||
{
|
||||
int location = SuperViewAsScroll.Orientation == Orientation.Vertical ? mouseEvent.Position.Y : mouseEvent.Position.X;
|
||||
int offset = _lastLocation > -1 ? location - _lastLocation : 0;
|
||||
int barSize = SuperViewAsScroll.Orientation == Orientation.Vertical ? SuperViewAsScroll.GetContentSize ().Height : SuperViewAsScroll.GetContentSize ().Width;
|
||||
int barSize = SuperViewAsScroll.Orientation == Orientation.Vertical ? SuperViewAsScroll.Viewport.Height : SuperViewAsScroll.Viewport.Width;
|
||||
|
||||
if (mouseEvent.Flags.HasFlag (MouseFlags.Button1Pressed) && _lastLocation == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user