-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
I have searched through both the documentation and the codebase. In neither, there is any result for 'contextmenu'. It's simply missing from the list of supported events (https://svgjs.dev/docs/3.1/events/). Yes, you could differentiate that from the regular .click() callback, but since you support all other events, this one should be supported as well? Or am i missing something?
So instead of:
// SVG.js does not natively have a 'element.contextmenu()' function yet.
this.element.on('contextmenu', (event: Event) => {
...
})
one could write:
this.element.contextmenu((event: Event) => {
...
})
Metadata
Metadata
Assignees
Labels
No labels