fix: gear settings menu toggle, and logic for scale/mode sync
This commit is contained in:
@ -498,10 +498,6 @@ constructor() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
initPriceScaleControls() {
|
|
||||||
const btnSettings = document.getElementById('btnSettings');
|
|
||||||
const settingsPopup = document.getElementById('settingsPopup');
|
|
||||||
|
|
||||||
// Settings Popup Toggle and Outside Click
|
// Settings Popup Toggle and Outside Click
|
||||||
if (btnSettings && settingsPopup) {
|
if (btnSettings && settingsPopup) {
|
||||||
btnSettings.addEventListener('click', (e) => {
|
btnSettings.addEventListener('click', (e) => {
|
||||||
@ -510,7 +506,7 @@ constructor() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener('click', (e) => {
|
document.addEventListener('click', (e) => {
|
||||||
if (!settingsPopup.contains(e.target) && e.target !== btnSettings && !btnSettings.contains(e.target)) {
|
if (!settingsPopup.contains(e.target) && e.target !== btnSettings) {
|
||||||
settingsPopup.classList.add('hidden');
|
settingsPopup.classList.add('hidden');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -571,7 +567,6 @@ constructor() {
|
|||||||
window.setScaleMode(newMode);
|
window.setScaleMode(newMode);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
initNavigationControls() {
|
initNavigationControls() {
|
||||||
const chartWrapper = document.getElementById('chartWrapper');
|
const chartWrapper = document.getElementById('chartWrapper');
|
||||||
|
|||||||
Reference in New Issue
Block a user