enable Custom dcc.Slider debounce interval, or add an option to turn debouncing off
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 24.4k
- Fork
- 2.3k
- Merge medio
- 2g 7h
- PR unite (30g)
- 13
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia individuando il componente React dcc.Slider e leggendo la logica di debounce usata con updatemode="drag". Riproduci il comportamento di trascinamento a velocità costante in una piccola app locale, quindi determina se il risultato previsto consiste in aggiornamenti periodici, nella disabilitazione del debounce o in un intervallo configurabile, e verifica il comportamento scelto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react
- Ambito
- data-visualization, frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100