fix(modal): fix desktop support modal positioning and bind close button (v22)
This commit is contained in:
+11
@@ -2597,10 +2597,21 @@
|
||||
openSupportModal();
|
||||
});
|
||||
}
|
||||
if (el.supportCloseBtn) {
|
||||
el.supportCloseBtn.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
closeSupportModal();
|
||||
});
|
||||
}
|
||||
if (el.supportModal) {
|
||||
el.supportModal.addEventListener('click', e => {
|
||||
if (e.target === el.supportModal) closeSupportModal();
|
||||
});
|
||||
el.supportModal.addEventListener('cancel', (e) => {
|
||||
e.preventDefault();
|
||||
closeSupportModal();
|
||||
});
|
||||
}
|
||||
|
||||
// Global listener for camera & portal inspection: NEVER switches views away from radar!
|
||||
|
||||
Reference in New Issue
Block a user