Range Slider with multi category repositions if dragging on the gray area
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.3k
- Forks
- 2k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 28
Beschreibung
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?
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 mit der verknüpften StackBlitz-Reproduktion, insbesondere mit index.js und package.json, und reproduziere das Ziehen des range-slider im grauen Bereich mit einer Achse mit mehreren Kategorien. Verfolge die Interaktion mit dem range-slider aus diesem Beispiel und überprüfe, dass das Ziehen an einer der beiden Kanten den Slider nicht mehr nach oben bewegt, die x-axis ausblendet oder eine sprunghafte Änderung des Bereichs verursacht.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100