plotly / plotly/plotly.js

Dragmode false not working for horizontal scroll

Offen
#6,609 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug P3
Vorherrschende Sprache
JavaScript
Sterne
18.3k
Forks
2k
Ø Merge
2 T. 12 Std.
Gemergte PRs (30 T.)
28

Beschreibung

This relates to #2844 which got partially solved by #3170 .
My problem is that dragmode = false should enable both horizontal and vertical scroll.
However, horizontal scrolling is not fully working.
In the case of a plot that is wider than the page, horizontal scrolling is not possible on a mobile device, if one tries to scroll within the axes. I want only the plot area to scroll, without the whole page overflowing the screen horizontally. That is why I arranged the divs in this way. I think this is a common use case.
Please check the following example on a mobile device:

https://codepen.io/maxnrw/pen/BaqGEYv

I tried to make it as simple as possible.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, das CodePen-Beispiel auf einem Mobilgerät nachzustellen, und vergleiche das Verhalten mit dem Kontext in den Issues #2844 und #3170. Verfolge, wie dragmode=false das Scrollen innerhalb der Achsen behandelt. Als abgeschlossen gilt die Aufgabe, wenn horizontales Scrollen innerhalb des Plot-Bereichs funktioniert, ohne einen seitenweiten horizontalen Überlauf zu verursachen, während vertikales Scrollen weiterhin möglich bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
data-visualization, frontend
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.