Merge pull request #2121 from xzmeng/fix-trade-select
Some checks failed
FreqUI CI / build (18, ubuntu-22.04) (push) Has been cancelled
FreqUI CI / build (20, ubuntu-22.04) (push) Has been cancelled
FreqUI CI / build (22, ubuntu-22.04) (push) Has been cancelled
FreqUI CI / build (23, ubuntu-22.04) (push) Has been cancelled

Fix trade select
This commit is contained in:
Matthias 2024-10-17 06:58:54 +02:00 committed by GitHub
commit aec27859a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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