plotly / plotly/plotly.js

Dragmode false not working for horizontal scroll

オープン
#6,609 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P3
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、モバイルデバイスでCodePenの例を再現し、issues #2844 と #3170 のコンテキストと動作を比較します。dragmode=false が軸内のスクロールをどのように処理するかを追跡します。プロット領域内で横スクロールが機能し、ページ全体の横方向のオーバーフローを引き起こさず、縦スクロールも引き続き利用できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
data-visualization, frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。