fkhadra / fkhadra/react-contexify

Does not work well with "longpress" libraries

Open
#206 3 comments 0 reactions 0 assignees View on GitHub
candidate next release
Dominant language
TypeScript
Stars
1.2k
Forks
132
PR merge metrics
No merged PRs in 30d

Description

I want to implement a mobile-friendly context menu, pretty much like the one of WhatsApp or Telegram. Which means: the menu should show up once you press and hold for a second. I managed to connect `react-contexify` to a long press library (`use-long-press` for React). But the menu shows two strange behaviours in this scenario:

1. It seems to spawn not only one menu, but several menus stacked over each other. At least it looks like this, because the shadow is pretty intense

2. The menu disappears once I release the mouse button / finger after the long press action. It only works within a certain time frame, so you have to be pretty careful about how long you press to make it actually work.

It would be awesome if the library would support such a long press scenario. It's actually pretty hard to find other context menu libraries that are still maintained.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.