Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work well with "longpress" libraries #206

Open
derwaldgeist opened this issue Feb 15, 2022 · 3 comments
Open

Does not work well with "longpress" libraries #206

derwaldgeist opened this issue Feb 15, 2022 · 3 comments

Comments

@derwaldgeist
Copy link

derwaldgeist commented Feb 15, 2022

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.

@fkhadra
Copy link
Owner

fkhadra commented Nov 3, 2022

Hey @derwaldgeist, I'll see if I can do something for the next release about this

@derwaldgeist
Copy link
Author

Thanks for your feedback! Do you have plans for a next release?

@joaquinwojcik
Copy link

@derwaldgeist can you provide a codesandbox to reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants