stardust66 / react-longpressable

Long-press component for React, with pointer events.
MIT License
10 stars 6 forks source link

Context menu opens on Mac (chrome) #2

Open onionhammer opened 5 years ago

onionhammer commented 5 years ago

When I long click on a button, the longpress event handler triggers, but it doesnt cancel the context menu from popping up

Found this example of one that does (somehow with jquery bastardy) cancel the context menu, for reference http://jsfiddle.net/z9ZNU/53/

kamzata commented 3 years ago

You could also use style={{userSelect: "none"}} in order to prevent text selection.

kamzata commented 3 years ago

When I long click on a button, the longpress event handler triggers, but it doesnt cancel the context menu from popping up

Found this example of one that does (somehow with jquery bastardy) cancel the context menu, for reference http://jsfiddle.net/z9ZNU/53/

Anyway, I found out I got the same issue. Do you find any solutions?