mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-05-05 00:37:44 +02:00
18 lines
435 B
C#
18 lines
435 B
C#
using Avalonia.Controls;
|
|
using Avalonia.Input;
|
|
using System;
|
|
|
|
namespace Ryujinx.Ava.UI.Controls
|
|
{
|
|
public class SliderScroll : Slider
|
|
{
|
|
protected override Type StyleKeyOverride => typeof(Slider);
|
|
|
|
protected override void OnPointerWheelChanged(PointerWheelEventArgs e)
|
|
{
|
|
Value = Math.Clamp(Value + e.Delta.Y * TickFrequency, Minimum, Maximum);
|
|
|
|
e.Handled = true;
|
|
}
|
|
}
|
|
}
|