Skip to content

Commit eed57b4

Browse files
committed
Minor fix
1 parent 4b2e932 commit eed57b4

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

package-lock.json

Lines changed: 20 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default {
6464
const axisValue = chart.data.labels[axisIndex];
6565

6666
// Check values & set end origin
67-
if(state.selectionXY.start.axisValue > axisValue) {
67+
if(state.selectionXY.start.axisIndex > axisIndex) {
6868
// Switch values - user has selected opposite way
6969
state.selectionXY.end = JSON.parse(JSON.stringify(state.selectionXY.start));
7070
state.selectionXY.start = { axisValue, axisIndex, x: e.offsetX, y: e.offsetY }

0 commit comments

Comments
 (0)