Kebechet.Blazor.EventHandlers.ShortClick 1.0.0-preview3

Prefix Reserved
This is a prerelease version of Kebechet.Blazor.EventHandlers.ShortClick.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Kebechet.Blazor.EventHandlers.ShortClick --version 1.0.0-preview3                
NuGet\Install-Package Kebechet.Blazor.EventHandlers.ShortClick -Version 1.0.0-preview3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Kebechet.Blazor.EventHandlers.ShortClick" Version="1.0.0-preview3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Kebechet.Blazor.EventHandlers.ShortClick --version 1.0.0-preview3                
#r "nuget: Kebechet.Blazor.EventHandlers.ShortClick, 1.0.0-preview3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Kebechet.Blazor.EventHandlers.ShortClick as a Cake Addin
#addin nuget:?package=Kebechet.Blazor.EventHandlers.ShortClick&version=1.0.0-preview3&prerelease

// Install Kebechet.Blazor.EventHandlers.ShortClick as a Cake Tool
#tool nuget:?package=Kebechet.Blazor.EventHandlers.ShortClick&version=1.0.0-preview3&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>

TODO

  • minification
  • build and publish pipeline
  • tests

License

This repository is licensed with the MIT license.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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