Kebechet.Blazor.EventHandlers.ShortClick
1.0.0-preview1
Prefix Reserved
See the version list below for details.
dotnet add package Kebechet.Blazor.EventHandlers.ShortClick --version 1.0.0-preview1
NuGet\Install-Package Kebechet.Blazor.EventHandlers.ShortClick -Version 1.0.0-preview1
<PackageReference Include="Kebechet.Blazor.EventHandlers.ShortClick" Version="1.0.0-preview1" />
paket add Kebechet.Blazor.EventHandlers.ShortClick --version 1.0.0-preview1
#r "nuget: Kebechet.Blazor.EventHandlers.ShortClick, 1.0.0-preview1"
// Install Kebechet.Blazor.EventHandlers.ShortClick as a Cake Addin #addin nuget:?package=Kebechet.Blazor.EventHandlers.ShortClick&version=1.0.0-preview1&prerelease // Install Kebechet.Blazor.EventHandlers.ShortClick as a Cake Tool #tool nuget:?package=Kebechet.Blazor.EventHandlers.ShortClick&version=1.0.0-preview1&prerelease
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>
License
This repository is licensed with the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net7.0
- Microsoft.AspNetCore.Components.Web (>= 7.0.5)
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,076 | 6/23/2024 |
1.0.2 | 963 | 10/8/2023 |
1.0.1 | 168 | 7/4/2023 |
1.0.0-preview3 | 125 | 5/29/2023 |
1.0.0-preview2 | 119 | 5/28/2023 |
1.0.0-preview1 | 122 | 5/28/2023 |
First release of the package