Closed etabackman closed 2 years ago
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.
This is still the case so plz don't close it :)
Hey, I will look into it. Looks like it needs to be handled internally within the library.
You can now overcome this issue by setting proper events filtering using new option filterEvents
like this:
// ...
// If mouse event, pass only "main mouse button" clicks
filterEvents: (event) => 'button' in event ? event.button === 0 : true
// ...
See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
When right-clicking momentarily (not long click), the
useLongPress
callback
function is triggered.How can I prevent this?