_boundSegments did not work on rising line (#8838)

This commit is contained in:
Jukka Kurkela
2021-04-07 14:32:28 +03:00
committed by GitHub
parent 873223fc78
commit c6473da16c
2 changed files with 10 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ function propertyFn(property) {
};
}
return {
between: (n, s, e) => n >= s && n <= e,
between: (n, s, e) => n >= Math.min(s, e) && n <= Math.max(e, s),
compare: (a, b) => a - b,
normalize: x => x
};