Skip to content

Commit a8540ad

Browse files
committed
#3197 fixed incorrect page navigation in book mode when clicking even page numbers in the sidebar
1 parent 5599c42 commit a8540ad

3 files changed

Lines changed: 58 additions & 40 deletions

File tree

package-lock.json

Lines changed: 54 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/ngx-extended-pdf-viewer/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,3 +740,5 @@
740740
- 27.0.0-rc.3 raised TypeScript target from es5 to es2022 in the root tsconfig.json (breaking change for projects still targeting ES5); this aligns with Angular 19 output level and enables modern APIs like replaceAll() and .at() throughout the codebase; #3195 In book mode, clicking the table of contents in the sidebar now flips the desired page open. Previously, it only updated the page number in the main toolbar; fixed the page-flip toolbar button not showing its SVG icon (Fluent l10n was overwriting the button content); fixed a Fluent resolver error ("Variable type not supported: $scale, object") caused by NaN being serialized as null in the zoom scale l10n args; fixed Angular compilation error with class interpolation (classMapInterpolate1).
741741
- 27.0.0-rc.4 Now the comment button has it's image back; fixed the comment dialog's focus outline overflowing the dialog border
742742
- 27.0.0-rc.5 fixed [(zoom)] two-way binding: the \_showBordersEffect was dispatching a fake scalechanging event with the raw Angular zoom value (e.g. 60) instead of the actual pdf.js scale factor (0.6), causing the toolbar dropdown to show wrong percentages after SPA navigation; removed competing dropdown manipulation from setZoom() that fought with pdf.js's own toolbar updates; rounded (zoomChange) values to 3 decimal places when displayed as percent (5 decimal places as scale factor) to avoid floating-point artifacts; synced toolbar dropdown and currentZoomFactor when the same-scale guard triggers; #2424 `getSerializedAnnotations()` now calls `commitOrRemove()`, so it gets a result even if the annotation hasn't been committed yet. The disadvantage is that the user can't continue drawing - but if the application calls `getSerializedAnnotations()`, we can safely assume the user has stopped drawing and expects the drawing to be committed.
743+
- 27.0.0-rc.6 (no changes)
744+
- 27.0.0-rc.7 #3197 fixed incorrect page navigation in book mode when clicking even page numbers in the sidebar

projects/ngx-extended-pdf-viewer/src/lib/options/pdf-default-options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const _isIE11 = typeof window === 'undefined' ? false : !!(<any>globalThis).MSIn
44
const isEdge = typeof navigator === 'undefined' || /Edge\/\d./i.test(navigator.userAgent);
55
const needsES5 = typeof ReadableStream === 'undefined' || typeof Promise['allSettled'] === 'undefined';
66

7-
export const pdfjsVersion = '5.6.1110';
8-
export const pdfjsBleedingEdgeVersion = '5.6.1109';
7+
export const pdfjsVersion = '5.6.1111';
8+
export const pdfjsBleedingEdgeVersion = '5.6.1110';
99
export function getVersionSuffix(folder: string): string {
1010
if (folder?.includes('bleeding-edge')) {
1111
return pdfjsBleedingEdgeVersion;

0 commit comments

Comments
 (0)