BUG: Marquee Zoom offset and erratic Ctrl + Scroll Zoom on rotated CAD-generated PDF files
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 4.5k
- Forks
- 317
- Merge medio
- 10 h 16 min
- PR fusionados (30 d)
- 174
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de embedpdf/embed-pdf-viewer
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
embedpdf/embed-pdf-viewer#1098 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
embedpdf/embed-pdf-viewer#921 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
embedpdf/embed-pdf-viewer#889 ·
Los mantenedores suelen responder en 1 día
-
[v2] TaskQueue: equal-priority tasks can run out of order when a randomUUID id starts with digitsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
embedpdf/embed-pdf-viewer#874 ·
Los mantenedores suelen responder en 1 día
-
Free text stays scrolled to the caret after editing endsPosiblemente ocupada @chahore la tomó hace 36 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
embedpdf/embed-pdf-viewer#861 ·
Los mantenedores suelen responder en 1 día
Todos los issues de embedpdf/embed-pdf-viewer
Issues similares
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
lingdojo/kana-dojo#34223 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
bug status: needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
mastra-ai/mastra#30587 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:web p2 product:business triage:active type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
cuadrao-ai/argus#2228 ·
Los mantenedores suelen responder en 1 día
-
.Needs Triage .Team/Metabot Priority:P3 Type:Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
metabase/metabase#87252 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
NuGet registry builds every URL from ROOT_URL, ignoring the host the client usedPosiblemente ocupada @gritse la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día