plotly / plotly/plotly.js

plotly_doubleclick not firing when dragmode not in [zoom, pan, orbit, turntable, False]

Open
#5,094 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The 'plotly_doubleclick' event fires correctly only when dragmode is set to one of 'zoom' | 'pan' | 'orbit' | 'turntable' | false.

With any other values (select, lasso, drawclosedpath, drawopenpath, drawline, drawrect, drawcircle all tested), it won't fire except if you dblclick on the axes.

https://codepen.io/lvlte/pen/mdPREKw

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

Reproduce the behavior using the linked CodePen and compare plotly_doubleclick with each listed dragmode value. Start by tracing the plotly_doubleclick event handling and dragmode interaction in plotly.js. Done means the event fires consistently for select, lasso, and the listed draw modes, including double-clicks away from the axes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.