Add configurable mouse wheel zoom to PDF editor

Introduced the `EnableWheelZoom` parameter in `SenderPdfImageEditor.razor` to allow toggling mouse wheel zoom functionality. Updated the JavaScript interop call to pass this parameter to the `ensureZoomOverride` function in `envelope-editor.js`.

Modified the `OnEditorWheelAsync` method to respect the `EnableWheelZoom` setting, preventing zoom actions when disabled. Updated `CreateEnvelopeWizardPopup.razor` to explicitly disable wheel zoom for its instance of the PDF editor.

Enhanced `ensureZoomOverride` in `envelope-editor.js` to handle the `enableWheelZoom` parameter, attaching or updating the `zoomOverrideEnableWheelZoom` dataset attribute to control zoom behavior dynamically.
This commit is contained in:
2026-11-30 14:26:23 +01:00
parent 700d635946
commit d54e094ef4
3 changed files with 24 additions and 3 deletions

View File

@@ -410,7 +410,8 @@
Fields="Array.Empty<SenderPdfFieldOverlay>()"
SignatureOverlays="Array.Empty<SenderPdfSignatureOverlay>()"
ShowFieldRemoveButton="false"
ShowToolbar="false" />
ShowToolbar="false"
EnableWheelZoom="false" />
</div>
}
</aside>