Remove forced remount sequence for thumbnail stabilization in viewer
This commit is contained in:
@@ -1017,25 +1017,6 @@
|
|||||||
}
|
}
|
||||||
panel.dataset.viewerControlsBound = '1';
|
panel.dataset.viewerControlsBound = '1';
|
||||||
|
|
||||||
// Force a take-page-only remount sequence to test thumbnail stabilization.
|
|
||||||
if (mainViewerEl && mainViewerEl.dataset.takeForcedRemountScheduled !== '1') {
|
|
||||||
mainViewerEl.dataset.takeForcedRemountScheduled = '1';
|
|
||||||
var forceTakeRemount = function (label) {
|
|
||||||
if (typeof window.mountDicomViewers === 'function') {
|
|
||||||
console.debug('[take-viewer] forcing dv3d remount:', label);
|
|
||||||
try {
|
|
||||||
window.mountDicomViewers();
|
|
||||||
} catch (e) {
|
|
||||||
console.warn('[take-viewer] forced dv3d remount failed:', label, e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// First remount shortly after controls initialize.
|
|
||||||
setTimeout(function () { forceTakeRemount('early'); }, 250);
|
|
||||||
// Second remount after initial image pipeline settles.
|
|
||||||
setTimeout(function () { forceTakeRemount('late'); }, 1600);
|
|
||||||
}
|
|
||||||
|
|
||||||
var savedH = localStorage.getItem(HEIGHT_KEY);
|
var savedH = localStorage.getItem(HEIGHT_KEY);
|
||||||
if (savedH && !isNaN(parseInt(savedH, 10))) {
|
if (savedH && !isNaN(parseInt(savedH, 10))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user