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

get the element which is right clicked #56

Open
MaxBittker opened this issue Jun 6, 2024 · 5 comments
Open

get the element which is right clicked #56

MaxBittker opened this issue Jun 6, 2024 · 5 comments

Comments

@MaxBittker
Copy link

I am attaching a menu to all the images on my page using an img selector, and I want to access the specific item in the action handler or in onBeforeShow. is there any built in facility for handling this in the library? apologies if I've missed it

@MaxBittker
Copy link
Author

it's the second argument to onBeforeShow

@nkappler
Copy link
Owner

nkappler commented Jun 6, 2024

Actually, thanks for opening this!
It's a good reminder to improve the documentation.

The latest update was a quick addition of more lifecycle events, which were originally planned for the next major release and I hastily put up some documentation.

I'll reopen this issue, so I won't forget it. 😊

@nkappler nkappler reopened this Jun 6, 2024
@MaxBittker
Copy link
Author

the library is great, I've used many variations on this theme (radix, etc) and will use this one again in the future

@MaxBittker
Copy link
Author

do you have any advice on ios safari long press? it doesn't seem to work on my ios device

@nkappler
Copy link
Owner

nkappler commented Jun 7, 2024

I've noticed this, too.

I think apple intentionally dropped support for the contextmenu event for usability reasons.

I'm not sure why, since it is still a common thing, at least outside of the web.

I probably will have to write some sort of polyfill for this, but I haven't looked into it in detail, so unfortunately I don't have a solution for it yet.

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

No branches or pull requests

2 participants