Range Slider with multi category repositions if dragging on the gray area
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 18.3k
- Fork
- 2k
- Merge medio
- 2g 12h
- PR unite (30g)
- 28
Descrizione
I've searched in https://github.com/plotly/angular-plotly.js if there was any issues about the range slider jumping randomly but there was not much but plotlys main repo had a few that were somewhat related but not exactly.
I've been wanting to use angular-plotly for my application since it had range slider and multi category axis with an easy api but i've noticed that when the user were to slide on the gray area to the far left or far right, the range slider would reposition to the top suddenly and would cause the x-axis to disappear.
Sometimes simply dragging in the gray area would cause the repositioning and a jumpy range change.
I thought maybe this was just the angular-plotly since the range slider example i copied from was https://plotly.com/javascript/range-slider/ , where there was no range slider reposition when sliding,
but it appears that this jumping also happens in the vanilla js.
Reproducible Ex:
https://stackblitz.com/edit/js-7ietfq?file=index.js%2Cpackage.json
start sliding in the gray area (left or right):
ends up after sliding:
my quick and toplevel guess is that the quickest temporary fix would be if somehow the library just disabled/prevent any interaction on the gray area and restrict only to using the handle bars until there is a fix?
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 dalla riproduzione StackBlitz collegata, in particolare da index.js e package.json, e riproduci il trascinamento del range-slider nell’area grigia con un asse a più categorie. Segui l’interazione del range-slider in quell’esempio e verifica che trascinare uno dei due bordi non sposti più lo slider verso l’alto, non nasconda il x-axis e non provochi una modifica a scatti dell’intervallo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- data-visualization
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100