enable Custom dcc.Slider debounce interval, or add an option to turn debouncing off
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 24.4k
- Forks
- 2.3k
- Ø Merge
- 2 T. 7 Std.
- Gemergte PRs (30 T.)
- 13
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die React-Komponente dcc.Slider zu finden und die Debounce-Logik zu lesen, die mit updatemode="drag" verwendet wird. Reproduziere das Drag-Verhalten mit konstanter Geschwindigkeit in einer kleinen lokalen App. Lege anschließend fest, ob periodische Updates, das Deaktivieren des Debouncing oder ein konfigurierbares Intervall das beabsichtigte Ergebnis ist, und verifiziere das gewählte Verhalten.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- react
- Bereich
- data-visualization, frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100