Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 866f06b

Browse files
authored
fix scroll direction (#431)
1 parent 1e32907 commit 866f06b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/domains/chart/components/lib-charts/dygraph-chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ export const DygraphChart = ({
718718
const zoom = (g, zoomInPercentage, bias) => {
719719
bias = bias || 0.5
720720
const [afterAxis, beforeAxis] = g.xAxisRange()
721-
const delta = afterAxis - beforeAxis
721+
const delta = beforeAxis - afterAxis
722722
const increment = delta * zoomInPercentage
723723
const [afterIncrement, beforeIncrement] = [increment * bias, increment * (1 - bias)]
724724

0 commit comments

Comments
 (0)