BUG: Marquee Zoom offset and erratic Ctrl + Scroll Zoom on rotated CAD-generated PDF files
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 28/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
Start by reproducing both symptoms with the attached CAD PDF (page rotation metadata) in the viewer, since the issue gives steps but names no file. Look for where marquee-zoom drag rectangles and Ctrl+scroll wheel deltas are converted into page coordinates, and how page rotation is applied there; issue #695 (callout placement on rotated pages) is flagged as the same transformation problem. Done means marquee zoom lands on the dragged area and Ctrl+scroll zooms in smooth, predictable steps on that PDF.
索引モデルが issue の本文から書いたものです。
説明
Describe the Bug
There are two related zoom issues when viewing specific PDF files. This behavior occurs on PDF files generated from CAD software that contain page rotation metadata (e.g., pages that appear landscape but have a built-in rotation angle).
- Marquee Zoom Offset: When using the Marquee Zoom tool to zoom into a specific selected area, the viewer zooms into a completely different, incorrect area on the page. The coordinate mapping seems shifted or rotated.
- Erratic Ctrl + Scroll Zoom: Using
Ctrl + Scrollto zoom in/out is not smooth at all. The zoom level jumps aggressively and feels way too fast/sensitive.
Note: This seems closely related to the coordinate transformation issues on rotated PDFs, similar to the Callout issue reported in #695.
Steps to Reproduce
For Marquee Zoom:
- Open the attached CAD PDF file in the viewer.
- Select the Marquee Zoom tool.
- Click and drag a box around a specific area you want to zoom into.
- Observe that the view jumps to a different portion of the page instead of the selected area.
For Ctrl + Scroll Zoom:
- Hold
Ctrland scroll the mouse wheel to zoom in or out. - Observe that the zoom is extremely sensitive, choppy, and jumps in large increments.
Expected Behavior
- Marquee Zoom: The viewer should precisely zoom into the area selected by the drag box, correctly accounting for any page rotation metadata.
- Ctrl + Scroll Zoom: The zoom transition should be smooth, predictable, and at a reasonable speed.
Actual Behavior
- Marquee Zoom targets the wrong coordinates.
- Ctrl + Scroll zoom is jittery, overly sensitive, and hard to control.
Environment
- Library Version: v2.14.4
- Framework: React
- Browser: Chrome
- OS: Windows
Additional Context & Attachments
I have attached the sample PDF, along with screenshots and a screen recording showing both the Marquee Zoom offset and the choppy Ctrl + Scroll behavior.
-
Sample PDF: ARCHITECTURAL- OFFICE - ACC_CAD_OMOI.pdf
-
Screenshots / Video:
https://github.com/user-attachments/assets/a33b41c0-8940-4179-8c51-117cb857efc3
- 主要言語
- TypeScript
- スター
- 4.5k
- フォーク
- 317
- 平均マージ
- 10時間 16分
- マージ済み PR(30日)
- 174
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
embedpdf/embed-pdf-viewer のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
embedpdf/embed-pdf-viewer#1098 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
embedpdf/embed-pdf-viewer#921 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
embedpdf/embed-pdf-viewer#889 ·
メンテナーはふだん 1 日以内に返信
-
[v2] TaskQueue: equal-priority tasks can run out of order when a randomUUID id starts with digitsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
embedpdf/embed-pdf-viewer#874 ·
メンテナーはふだん 1 日以内に返信
-
Free text stays scrolled to the caret after editing ends対応中かも @chahore が 36 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
embedpdf/embed-pdf-viewer#861 ·
メンテナーはふだん 1 日以内に返信
embedpdf/embed-pdf-viewer の issue をすべて見る
似ている issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
lingdojo/kana-dojo#34223 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
bug status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
mastra-ai/mastra#30587 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:web p2 product:business triage:active type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
cuadrao-ai/argus#2228 ·
メンテナーはふだん 1 日以内に返信
-
.Needs Triage .Team/Metabot Priority:P3 Type:Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
metabase/metabase#87252 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
NuGet registry builds every URL from ROOT_URL, ignoring the host the client used対応中かも @gritse が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信