Fix final issues with longpress. Update all files to use correct encoding and ran through CodeMaid.

This commit is contained in:
ahjephson
2025-10-20 14:54:31 +01:00
parent 1f606b4449
commit 7db4f2f78d
55 changed files with 82 additions and 87 deletions

View File

@@ -1,6 +1,4 @@
using System;
using Lantean.QBTMud;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.Web;
namespace Lantean.QBTMud.Helpers
{
@@ -8,10 +6,7 @@ namespace Lantean.QBTMud.Helpers
{
public static EventArgs NormalizeForContextMenu(this EventArgs eventArgs)
{
if (eventArgs is null)
{
throw new ArgumentNullException(nameof(eventArgs));
}
ArgumentNullException.ThrowIfNull(eventArgs);
if (eventArgs is LongPressEventArgs longPressEventArgs)
{
@@ -23,10 +18,7 @@ namespace Lantean.QBTMud.Helpers
public static MouseEventArgs ToMouseEventArgs(this LongPressEventArgs longPressEventArgs)
{
if (longPressEventArgs is null)
{
throw new ArgumentNullException(nameof(longPressEventArgs));
}
ArgumentNullException.ThrowIfNull(longPressEventArgs);
return new MouseEventArgs
{
@@ -41,7 +33,8 @@ namespace Lantean.QBTMud.Helpers
ScreenX = longPressEventArgs.ScreenX,
ScreenY = longPressEventArgs.ScreenY,
Type = longPressEventArgs.Type ?? "contextmenu",
Detail = -1,
};
}
}
}
}