Fix midpoint

This commit is contained in:
Jon D
2016-11-05 18:48:11 +00:00
parent 45635f7cdc
commit dd16112aa3
+1 -1
View File
@@ -19,7 +19,7 @@ export function actionFlip(wayId, isVertical, projection) {
const leftOrTop = isVertical ? boundingRect[1] : boundingRect[0];
const rightOrBottom = isVertical ? boundingRect[3] : boundingRect[2];
// Determine the mid-point that we will flip on
const midPoint = leftOrTop + (rightOrBottom - leftOrTop);
const midPoint = leftOrTop + ((rightOrBottom - leftOrTop) / 2);
// Obtain all of the nodes on the way, iterate over them to translate then aggreate up
return _(targetWay.nodes)