plotly / plotly/dash

enable Custom dcc.Slider debounce interval, or add an option to turn debouncing off

Open
#2,020 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
Python
Stars
24.4k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
13

Description

The dcc.Slider component with updatemode="drag" works well for live updates while moving a slider, except that the debouncing logic is not ideal. If the user gives a constant velocity smooth drag, they don't actually get updates. Only when operating the mouse a bit more haphazardly do you get more frequent updates. I assume there is some custom debounce logic in the react component to deal with this (something like, if the mouse has moved in the last 10ms, then wait before firing off an event), but it's not exposed to the programmer.

Realistically, the current behavior is pretty good as a default, especially for deployed web apps. However the debounce logic should periodically send updates even during a constant-velocity drag, or the programmer should be able to turn this logic off or customize it in some way. The program feels a bit sluggish with a slider, even though a small web app running locally could support much higher data throughput.

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 locating the dcc.Slider React component and reading the debounce logic used with updatemode="drag". Reproduce the constant-velocity drag behavior in a small local app, then define whether periodic updates, disabling debouncing, or a configurable interval is the intended result and verify the chosen behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.