fix trade-select

This commit is contained in:
Meng Xiangzhuo 2024-10-17 04:32:46 +08:00
parent 3c55cc7f19
commit f21cc09308
No known key found for this signature in database
GPG Key ID: 7A1735AB4A5A3594

View File

@ -649,12 +649,10 @@ function initializeChartOptions() {
function updateSliderPosition() {
if (!props.sliderPosition) return;
const start = timestampms(props.sliderPosition.startValue - props.dataset.timeframe_ms * 40);
const end = timestampms(
props.sliderPosition.endValue
? props.sliderPosition.endValue + props.dataset.timeframe_ms * 40
: props.sliderPosition.startValue + props.dataset.timeframe_ms * 80,
);
const start = props.sliderPosition.startValue - props.dataset.timeframe_ms * 40;
const end = props.sliderPosition.endValue
? props.sliderPosition.endValue + props.dataset.timeframe_ms * 40
: props.sliderPosition.startValue + props.dataset.timeframe_ms * 80;
if (candleChart.value) {
candleChart.value.dispatchAction({
type: 'dataZoom',