Skip to content

Commit f98ab11

Browse files
committed
Fix ScrollBar
It needs to also change MouseMove because we don't have track functionality yet and thus we only want to show interactivity when we're directly hovering/grabbing the scrollbar.
1 parent beeb4e6 commit f98ab11

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Robust.Client/UserInterface/Controls/ScrollBar.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,21 @@ protected internal override void KeyBindUp(GUIBoundKeyEventArgs args)
130130

131131
protected internal override void MouseMove(GUIMouseMoveEventArgs args)
132132
{
133+
DefaultCursorShape = CursorShape.Arrow;
134+
135+
if (_isHovered || _grabData != null)
136+
{
137+
DefaultCursorShape = _orientation == OrientationMode.Horizontal
138+
? CursorShape.HResize
139+
: CursorShape.VResize;
140+
}
141+
133142
if (_grabData == null)
134143
{
135144
var box = _getGrabberBox();
136145
_isHovered = box.Contains(args.RelativePixelPosition);
137146
_updatePseudoClass();
147+
138148
return;
139149
}
140150

0 commit comments

Comments
 (0)