-
-
Notifications
You must be signed in to change notification settings - Fork 7
feat(PdfReader): add OnScaleChangedAsync parameter #756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
52c8cea
f69716e
9f07153
df72574
cb0d448
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -349,7 +349,13 @@ const addEventBus = (el, pdfViewer, eventBus, invoke, options) => { | |||||
| }, true); | ||||||
|
|
||||||
|
|
||||||
| eventBus.on("scalechanging", evt => updateScaleValue(el, evt.scale)); | ||||||
| eventBus.on("scalechanging", async evt => { | ||||||
| updateScaleValue(el, evt.scale); | ||||||
|
|
||||||
| if (options.triggerScaleChanged) { | ||||||
|
||||||
| if (options.triggerScaleChanged) { | |
| if (options.triggerScaleChanged === true) { |
Copilot
AI
Nov 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon at the end of the eventBus.on("scalechanging", ...) statement. All other event handler registrations in this function (lines 309, 325, 349, 365) end with semicolons for consistency.
| }) | |
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing
<param>documentation for thevalparameter. Other similar callback methods in this file (e.g.,PagesInit,PagesLoaded,PageChanged) include<param>documentation for their parameters.