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

Disable context menu for WebAgg backend? #4030

Closed
blink1073 opened this issue Jan 23, 2015 · 4 comments · Fixed by #4032
Closed

Disable context menu for WebAgg backend? #4030

blink1073 opened this issue Jan 23, 2015 · 4 comments · Fixed by #4032

Comments

@blink1073
Copy link
Member

The context menu is disabled for the nbagg backend here. The context menu is not suppressed for the webagg backend. This interferes with right click events on the figure and if the user selects "Save Image" from the browser context menu, they get just the rubberband layer.
Okay with me moving the context menu disable to mpl.js?

@blink1073
Copy link
Member Author

cc @pelson

@pelson
Copy link
Member

pelson commented Jan 23, 2015

Yeah, go for it. Also, could you check that a right click is triggering the appropriate mpl events rather than just completely disabling the right-mouse button?

@WeatherGod
Copy link
Member

ATTN: @mdboom I remember discussing this back during development/testing of
webagg. You had reasons for it, but I can't remember.
On Jan 23, 2015 8:09 AM, "Phil Elson" notifications@github.com wrote:

Yeah, go for it. Also, could you check that a right click is triggering
the appropriate mpl events rather than just completely disabling the
right-mouse button?


Reply to this email directly or view it on GitHub
#4030 (comment)
.

@mdboom
Copy link
Member

mdboom commented Jan 23, 2015

@WeatherGod: The issue I had before is that many browsers up until around 2 years ago made it rather difficult to disable the context menu and this use the right mouse button for something else, on the premise that it was a security flaw: a program could popup a fake context menu that then leads to something asking for a password or something. I think the browsers have all resolved this by not doing anything security related in the context menu and thereby allowing javascript to disable it. TL;DR: No longer an issue in current versions of Chrome/Firefox/Safari.

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

Successfully merging a pull request may close this issue.

4 participants