Fix toolbox hotkey chart selection and toolbox resize display bug (#267)

This commit is contained in:
louisnw
2024-02-24 13:01:37 +00:00
parent e199e54c7a
commit 745c14bb7f
3 changed files with 21 additions and 8 deletions

View File

@ -225,8 +225,6 @@ function makeSearchBox(chart) {
chart.chart.subscribeCrosshairMove((param) => {
if (param.point) yPrice = param.point.y;
})
window.selectedChart = chart
chart.wrapper.addEventListener('mouseover', (event) => window.selectedChart = chart)
chart.commandFunctions.push((event) => {
if (selectedChart !== chart) return false
if (searchWindow.style.display === 'none') {