refactor(SVGPanZoom): Fix memory leaking - consolidate zoom lifecycle into PanzoomContainer (#23236)

* refactor(SVGPanZoom): attach panzoom via use: action and remove unused parent bind:this

* refactor: centralize panzoom in createPanzoomAction and align ImagePreview cleanup

* refactor(panzoom): consolidate zoom lifecycle into PanzoomContainer and remove action-based wiring
This commit is contained in:
Shirasawa authored and GitHub committed 2026-03-30 20:54:28 -05:00
1 parent 1c5e84ddf2
commit eba2b2cd72
6 files changed
+72 -109

No files matched your search

-1
View File
@@ -293,7 +293,6 @@
// ── File preview management ──────────────────────────────────────────
const clearFilePreview = () => {
fileContent = null;
filePreviewRef?.disposePanzoom();
if (fileImageUrl) {
URL.revokeObjectURL(fileImageUrl);
fileImageUrl = null;