mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 07:25:15 +02:00
Fix midpoint
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user