question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some folks are using right-click on data points in their apps

See original GitHub issue

… and PR https://github.com/plotly/plotly.js/pull/2087 broke that 💣

See https://community.plot.ly/t/plotly-click-event-stopped-firing-after-update-on-right-click/6353 and https://community.plot.ly/t/annotation-right-click/6352.

What should we do?

  • Revert #2087 ?
  • add a config option that allows plotly_click on right-clicks?
  • anything else?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
etpinardcommented, Oct 27, 2017

right-click on any data point/element - we should emit a plotly_click event and you can look at e.event.button(s) to determine if it was a right click right-click on annotations - plotly_clickannotation, e.event.button(s) right-click on legend (see #65) right-click off of subplots (axes, margins…) - passes through to graphDiv.oncontextmenu? anything else?

I agree with all of these 👍

2reactions
Melmoth-the-Wanderercommented, Oct 19, 2017

It’s already on the production (right-click detection using plotly_click) and would be nice if we aren’t stuck with Plotly 1.30 forever 😃

Config option looks fine for us, however I don’t fully understand the purpose of #2087 . The need for custom contextmenu is obvious, but you can still disable browser’s context menu on plotl’s placeholder and build custom one on right click, as we do. That’s even more powerful if you can use Plotly event with points passed to the handler (necessary for us). Same applies to plotly_onannotationclick etc. This gives us a possibility to create a different contextmenu based on what’s clicked.

Am I missing something important here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is right click on tables bad UX
I think it is a great idea to use right click to context menu. It is a norm in desktop application and I...
Read more >
Access system features with right-click
Your mouse and operating system work together to access additional features of your software. Learn how to use the right-click button on your...
Read more >
How to troubleshoot right-click not working on Chrome and ...
There may be several reasons why right-click is not working in a browser. We have prepared the tips to help you with fixing...
Read more >
How do I disable right click on my web page?
You can do that with JavaScript by adding an event listener for the "contextmenu" event and calling the preventDefault() method: document.
Read more >
5 Easy Ways to Right-Click on a Mac
Learn how to right-click on Mac in a few ways. ... which is very helpful because most left-handed people use the mouse with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found