fix(modal): enable smooth desktop vertical scrolling on camera detail modal (v19)
This commit is contained in:
@@ -1625,6 +1625,8 @@
|
||||
window.history.replaceState({}, document.title, window.location.pathname);
|
||||
} else if (urlParams.get('modal') === 'support' || window.location.hash === '#support') {
|
||||
setTimeout(openSupportModal, 300);
|
||||
} else if (urlParams.get('cam')) {
|
||||
setTimeout(() => openCameraHardwareProof(urlParams.get('cam')), 350);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1902,6 +1904,7 @@
|
||||
|
||||
// Show modal
|
||||
if (el.cameraDetailModal) {
|
||||
el.cameraDetailModal.scrollTop = 0;
|
||||
if (typeof el.cameraDetailModal.showModal === 'function') {
|
||||
el.cameraDetailModal.showModal();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user