minwork / use-long-press

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

Use-long-press doesn't work on version 2.0.2 #36

Closed Kachanov-dev closed 1 year ago

Kachanov-dev commented 1 year ago

I tried to run the project on version 2.0.2 and it didn't work. I had to downgrade to version 1.1.2 which is used in the base example.

lancedolan commented 1 year ago

Confirmed.

Found this issue after losing ~30 mins trying to get 2.0.2 working. Good to go on ~1.0.0

minwork commented 1 year ago

Thanks for the report, please provide more information what exactly wasn’t working? Was there any error?

Kachanov-dev commented 1 year ago

@minwork I apologise, I saw in the documentation that the implementation differs from the example in the codesandbox. If you have time, please update the codesandbox example , because it's а little confusing.

minwork commented 1 year ago

@Kachanov-dev I've added separate example for v2