WebViewer Version: 11.12.0 (Migrated from 10.10.1)
Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? Yes (Any
multi-page PDF with placed annotations)
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No (Vanilla JS / jQuery)
Is your issue related to annotations? Yes (specifically jumpToAnnotation API)
Please give a brief summary of your issue: jumpToAnnotation resets scroll position to Page 1 / Start of PDF before navigating to destination page in WebViewer 11
Please describe your issue and provide steps to reproduce it:
We recently migrated our document viewer from WebViewer 10.10.1 to 11.12.0. Following this migration, we have noticed a major change in how annotationManager.jumpToAnnotation behaves when navigating between annotations on different pages.
Steps to Reproduce:
- Load a multi-page PDF with annotations scattered across multiple pages
(e.g., Page 3 and Page 5). - Scroll to Page 5, and trigger a programmatic jump back to an annotation on
Page 3 using:
annotationManager.jumpToAnnotation(targetAnnotation, { isSmoothScroll:
true });
Expected Behavior (as in WebViewer 10.10.1):
The viewer scrolls smoothly and directly from its current position (Page 5) to
the target annotation on Page 3.
Actual Behavior (in WebViewer 11.12.0):
- The viewport instantly resets / jumps back to the very first page (top of
the document). - It then scrolls from the first page down to the destination
annotation on Page 3.
Our concerns:
- Is this layout reset to the start of the PDF expected behavior in WebViewer 11 when executing jumpToAnnotation?
- Are there any configuration flags or layout options we can set during initialization to force jumpToAnnotation to transition directly from its current scroll viewport position rather than resetting to page 1 first?
Please provide a link to a minimal sample where the issue is reproducible: A simple setup listening to a sidebar button click that calls jumpToAnnotation on any off-screen annotation on a multi-page document reproduces this behavior.