[Bug] Zoom “jumps” on touchpad scroll in controlled viewState with MapLibre

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

まず examples/maplibre/side-by-side を実行し、いずれかのマップでタッチパッドの一時停止と再開のシーケンスを再現します。ズームアウトおよびズームイン時の一時停止中に制御された viewState を比較し、一覧にあるブラウザーで、ちらつきやジャンプなしに一時停止したレベルからズームが継続することを確認します。

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

説明

bug
Description

When using controlled viewState with MapLibre (as in examples/maplibre/side-by-side), touchpad scroll-zoom stutters: pausing the scroll by lightly resting your fingers, then resuming, causes the zoom to jump.

You can see the flicker in the screenrecording right after the zoom-out/zoom-in pauses:

https://github.com/user-attachments/assets/25a14c3c-5d3f-49c7-bf55-3ae7906b16ff

Expected Behavior

Zoom should continue exactly from the paused level, with no sudden jumps.

Steps to Reproduce

Run examples/maplibre/side-by-side.

On either map perform a two-finger scroll to zoom and release the touchpad to continue scrolling.

Pause midway by touching the touchpad lightly, then continue scrolling.

Environment
  • Framework version: 8.0.4
  • Map library: Maplibre 5.5.0
  • Browser: Firefox 138, Chrome 135, Safari 18.3
  • OS: macOS Sequoia 15.3.1
Logs

No response

主要言語
TypeScript
スター
8.5k
フォーク
1.3k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

visgl/react-map-gl のほかの issue

visgl/react-map-gl の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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