Kebechet.Blazor.EventHandlers.ShortClick
2.0.0
Prefix Reserved
dotnet add package Kebechet.Blazor.EventHandlers.ShortClick --version 2.0.0
NuGet\Install-Package Kebechet.Blazor.EventHandlers.ShortClick -Version 2.0.0
<PackageReference Include="Kebechet.Blazor.EventHandlers.ShortClick" Version="2.0.0" />
paket add Kebechet.Blazor.EventHandlers.ShortClick --version 2.0.0
#r "nuget: Kebechet.Blazor.EventHandlers.ShortClick, 2.0.0"
// Install Kebechet.Blazor.EventHandlers.ShortClick as a Cake Addin #addin nuget:?package=Kebechet.Blazor.EventHandlers.ShortClick&version=2.0.0 // Install Kebechet.Blazor.EventHandlers.ShortClick as a Cake Tool #tool nuget:?package=Kebechet.Blazor.EventHandlers.ShortClick&version=2.0.0
Blazor.EventHandlers.ShortClick
This package contains @onshortclick
event handler.
Motivation: In order to unify development experience among multiple platforms I have decided to create onshortclick
event for cases when you would like to use @onlongpress event handler. Because for example on Windows browser onclick
event is triggered even after holding mousedown
for more than 500ms. On the other side mobile devices behave differently. And onclick
is not triggered after more than 400-500ms .
- usage:
<button @onshortclick="OnShortClick">Click me</button>
or the combination with @onlongpress
:
<button @onlongpress="OnLongPress" @onshortclick="OnShortClick">Click or longpress me</button>
TODO
- minification
- build and publish pipeline
- tests
License
This repository is licensed with the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0 | 1,095 | 6/23/2024 |
1.0.2 | 964 | 10/8/2023 |
1.0.1 | 169 | 7/4/2023 |
1.0.0-preview3 | 126 | 5/29/2023 |
1.0.0-preview2 | 120 | 5/28/2023 |
1.0.0-preview1 | 123 | 5/28/2023 |
.NET8 bump