simplify distance helper and factor out common bounds helper (#581)
* simplify distance helper * factor out common bounds helper
This commit is contained in:
committed by
Christopher Chedeau
parent
5853fba821
commit
7b842fc330
@ -88,5 +88,5 @@ export function removeSelection() {
|
||||
}
|
||||
|
||||
export function distance(x: number, y: number) {
|
||||
return Math.abs(x > y ? x - y : y - x);
|
||||
return Math.abs(x - y);
|
||||
}
|
||||
|
Reference in New Issue
Block a user