From 7d9a8ea237c4633b6993e115b1a80e662dbfb121 Mon Sep 17 00:00:00 2001 From: DiTus Date: Sat, 21 Mar 2026 08:56:25 +0100 Subject: [PATCH] fix: gear settings menu toggle, and logic for scale/mode sync --- js/ui/chart.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/ui/chart.js b/js/ui/chart.js index 3618114..c83fcff 100644 --- a/js/ui/chart.js +++ b/js/ui/chart.js @@ -498,10 +498,6 @@ constructor() { }); } - initPriceScaleControls() { - const btnSettings = document.getElementById('btnSettings'); - const settingsPopup = document.getElementById('settingsPopup'); - // Settings Popup Toggle and Outside Click if (btnSettings && settingsPopup) { btnSettings.addEventListener('click', (e) => { @@ -510,7 +506,7 @@ constructor() { }); 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'); } }); @@ -571,7 +567,6 @@ constructor() { window.setScaleMode(newMode); } }); - } initNavigationControls() { const chartWrapper = document.getElementById('chartWrapper');