-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsquestionuntriaged
Description
Blazor @onclick
event has different behavior on each platform.
E.g. on windows you can mousedown, hold for 5s, then mouseup and it will still trigger click event. On mobile devices if the press > ~500ms the event is not triggered.
I would like to unify all these things so that all of them behave exactly the same(after 400ms it wont trigger the event).
Because of this I would like to override build in:
Microsoft.AspNetCore.COmponets.Web.EventHandlers.onclick
with my custom
Blazor.EventHandlers.LongPress.EventHandlers.onclick
Currently I am getting an error:
Question:
I it even possbile to override the functionality ?
If so, how should I proceeed ?
Thank you
Metadata
Metadata
Assignees
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsquestionuntriaged