Closed zRafaF closed 1 year ago
Hey, that's a very interesting edge case, thank you for your report and suggested solution.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hey, it is the same case as in #48 which will be addressed in v3. See this comment for more details
@ZRafaF Hey, I've addressed this issue in use-long-press@3.0.0-rc.1
, can you try it out and confirm if that resolves your problem? Migration guide to v3 can be found here
Version 3 which addresses this issue is now available at use-long-press@latest
Pressing and scrolling a scrollbar present inside the component doesn't cancel the action, even with
cancelOnMovement
set totrue
.I'm running:
18.2.0
110.0.5481.77
A possible solution would be to use
onScrollCapture
to call thecancel
. At least thats what I used for my workaround.