Scrolling to current chapter in mobile TOC
メンテナーはふだん 1 日以内に返信
@Abhirup-99 がすでに取り組んでいます。
2020年9月22日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 62/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- javascript
調査の方向性
モバイル目次を開いたときに実行される src/js/plugins/plugin.chapters.js の BookReader.prototype.updateTOCState から始めます。既存の .current-chapter 要素を使用し、スクロール方法を選ぶ前に TOC と mmenu の動作を確認してください。モバイル目次を再度開いたときに、予期しない mmenu の動作なしでリストが現在の章の位置に移動すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Context
We would like the list of the chapters to be scrolled to the current chapter each time the table of contents is opened
Proposal & Constraints
The process to find the current chapter when the TOC table is opened is already done. The current chapter element is defined by the class .current-chapter. The code to scroll the TOC table to the current chapter should be in the BookReader.prototype.updateTOCState function inside src/js/plugins/plugin.chapters.js, because it gets called each time the mobile TOC table is opened.
Using something like .ScrollIntoView() may not work every time because of conflicts with mmenu. Simpler scrolling methods may cause less unexpected problem.
- 主要言語
- JavaScript
- スター
- 1.2k
- フォーク
- 498
- 平均マージ
- 1時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
internetarchive/bookreader のほかの issue
-
Raise error if translating from/to same language対応中かも @Reckz69 が 311 日前に担当しました。 オープンdifficulty: easy priority: high translations
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
internetarchive/bookreader#1488 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Fix Share dialog layout, button alignment, and outdated Twitter branding対応中かも @Manas756 が 5 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
internetarchive/bookreader#1629 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
internetarchive/bookreader#1626 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
iPad landscape reading: tap to advance one screenful対応中かも @Manas756 が 7 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
internetarchive/bookreader#1624 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
internetarchive/bookreader#1595 ·
メンテナーはふだん 1 日以内に返信
internetarchive/bookreader の issue をすべて見る
似ている issue
-
area-integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Trac-Systems/main_settlement_bus#1071 ·
メンテナーはふだん 1 日以内に返信
-
Bug kind/bug pulumi/pulumi R1 S1
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Document that Search Attributes on Standalone Activity start are not billed as additional Actionsオープン
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
temporalio/documentation#5883 ·
メンテナーはふだん 1 日以内に返信