Consider the following in Blazor WebAssembly:
<span @onclick="Click" @ondblclick="DoubleClick">Click Me!</span>
@code {
private void Click()
{
Console.WriteLine("Click");
}
private void DoubleClick()
{
Console.WriteLine("Double-click");
}
}
If I double-click the element, what I'll see in the console is:
Click
Click
Double-click
Is there a way to receive the double-click event without it triggering 2 single click events? I want to use both events for different purposes and they are interfering with each other because of this.
Any suggestions much appreciated.