minwork / use-long-press

React hook for detecting click (or tap) and hold event
MIT License
120 stars 12 forks source link

Add support for triggering cancel on mouse / touch move #8

Closed minwork closed 3 years ago

minwork commented 3 years ago

Also made some chores and refactors

codecov-commenter commented 3 years ago

Codecov Report

Merging #8 (6a5000d) into master (a638a25) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master        #8   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           43        74   +31     
  Branches        22        30    +8     
=========================================
+ Hits            43        74   +31     
Impacted Files Coverage Δ
src/index.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a638a25...6a5000d. Read the comment docs.