From 53ddb02dff3ebb83af208d0defb5d6c507d8b601 Mon Sep 17 00:00:00 2001 From: DiTus Date: Sat, 21 Mar 2026 08:58:16 +0100 Subject: [PATCH] fix: gear toggle, shortcut sync, and chart scale interaction --- js/ui/chart.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/ui/chart.js b/js/ui/chart.js index c83fcff..3a5978c 100644 --- a/js/ui/chart.js +++ b/js/ui/chart.js @@ -498,6 +498,10 @@ 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) => { @@ -511,7 +515,7 @@ constructor() { } }); } - + // Initialize state from storage this.scaleState = { autoScale: localStorage.getItem('winterfail_scale_auto') !== 'false', @@ -567,6 +571,7 @@ constructor() { window.setScaleMode(newMode); } }); + } initNavigationControls() { const chartWrapper = document.getElementById('chartWrapper');