hide indicators panel when clicking on chart

This commit is contained in:
DiTus
2026-03-22 21:46:31 +01:00
parent 31ac1ead5b
commit eccfcc4b79
2 changed files with 40 additions and 3 deletions

View File

@ -491,6 +491,11 @@ export class TradingDashboard {
this.renderTA();
}
});
// Hide indicators panel when clicking on chart
this.chart.subscribeClick(param => {
window.hideAllPanels?.();
});
window.addEventListener('resize', () => {
this.chart.applyOptions({