mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-26 07:39:52 -06:00
misc: Move StatusBarSeparator into Controls namespace, rename to MiniVerticalSeparator
add bulk property change event method give each markup extension its own property name
This commit is contained in:
18
src/Ryujinx/UI/Controls/SliderScroll.cs
Normal file
18
src/Ryujinx/UI/Controls/SliderScroll.cs
Normal file
@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user