Always drag using pointer location, not vertex location

This commit is contained in:
Andreas Hocevar committed 2020-12-06 18:11:15 +01:00
1 parent 0e15720f2e
commit b6eb429f77
2 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -1163,8 +1163,8 @@ class Modify extends PointerInteraction {
const vertexSegments = {};
vertexSegments[getUid(closestSegment)] = true;
this.delta_[0] = hitPointGeometry ? vertex[0] - pixelCoordinate[0] : 0;
this.delta_[1] = hitPointGeometry ? vertex[1] - pixelCoordinate[1] : 0;
this.delta_[0] = vertex[0] - pixelCoordinate[0];
this.delta_[1] = vertex[1] - pixelCoordinate[1];
if (
node.geometry.getType() === GeometryType.CIRCLE &&
node.index === CIRCLE_CIRCUMFERENCE_INDEX