Fix dragging slider bars on nub not performing correctly relative movement

This commit is contained in:
Dean Herbert 2022-06-30 04:39:59 +09:00
parent 24cd845d1b
commit b626135940
1 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,9 @@ protected override void OnHoverLost(HoverLostEvent e)
base.OnHoverLost(e);
}
protected override bool ShouldHandleAsRelativeDrag(MouseDownEvent e)
=> Nub.ReceivePositionalInputAt(e.ScreenSpaceMouseDownPosition);
protected override void OnDragEnd(DragEndEvent e)
{
updateGlow();