feat: placeholder for touch screen editors

This commit is contained in:
2026-04-20 15:17:21 +03:00
parent 392b20ccee
commit 437107ecb8
5 changed files with 61 additions and 17 deletions
+22
View File
@@ -0,0 +1,22 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Input;
namespace GSS2;
public class TouchNumericUpDown : NumericUpDown
{
protected override Type StyleKeyOverride => typeof(NumericUpDown);
public TouchNumericUpDown()
: base()
{
AddHandler(PointerPressedEvent, OnPointerPressed, handledEventsToo: true);
}
private void OnPointerPressed(object? sender, PointerPressedEventArgs ea)
{
Console.WriteLine($"TODO: process TouchNumericUpDown.PointerPressed event");
}
}