plotly / plotly/plotly.js

add option to disable right mouse button events (specifically RMB drag)

Open
#6,030 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

There is an existing bug report (that for some reason did not get any traction): #5311

If fixing this issue specifically is far out of current roadmap or too complex - maybe it would be possible to add an option to disable right mouse button interactions altogether?

I've spent some hours trying to ignore various events (mouseup, oncontextmenu) for my plot and its parent components
but was not able to stop Plotly from interacting with right mouse button drag.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked issue #5311 and reproducing the right-mouse-button drag behavior in Plotly.js. No source file or test is identified in the report, so locate the interaction-handling entry point before defining the option; done should mean right-button interactions can be disabled without changing other mouse interactions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.