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

Make the event triggering the open menu action configurable. #54

Closed
ZancaM opened this issue Aug 24, 2016 · 3 comments
Closed

Make the event triggering the open menu action configurable. #54

ZancaM opened this issue Aug 24, 2016 · 3 comments

Comments

@ZancaM
Copy link

ZancaM commented Aug 24, 2016

For example change the opening of the context menu on single left (regular) click.

@ZancaM
Copy link
Author

ZancaM commented Aug 24, 2016

For now I tweaked the library myself for my purpose:
https://github.com/jonataswalker/ol3-contextmenu/blob/master/src/js/internal.js#L158
I changed contextmenu to click to enable the menu on single click.
Ideally this could be coming as a property when we create the object
new ContextMenu({
'event':'click',
...
})

@jonataswalker
Copy link
Owner

@ZancaM I'm glad you reached a solution but I'm not sure about this. It looks like, for me, a bit intrusive.

Maybe you have some more arguments? Or others?

@jonataswalker
Copy link
Owner

With #73 you can set the event type.

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

2 participants