Skip to content

Commit

Permalink
Merge pull request freqtrade#2121 from xzmeng/fix-trade-select
Browse files Browse the repository at this point in the history
Fix trade select
  • Loading branch information
xmatthias authored Oct 17, 2024
2 parents fcc1219 + f21cc09 commit aec2785
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/charts/CandleChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit aec2785

Please sign in to comment.