aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryunahi <60233430+yunahi@users.noreply.github.com>2020-08-20 22:03:41 +0900
committeryunahi <60233430+yunahi@users.noreply.github.com>2020-08-20 22:03:41 +0900
commit14066426ecbb34dd53909b2aecd4be0edceb4c23 (patch)
treee2ba0e343483d683b54d0e2ec4555262fe369f7e /src
parentd30ab1eb48857b4be439b844d3b02c3884921eac (diff)
fixed lasso
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/collectionFreeForm/MarqueeView.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
index 1a708d67d..3606d5402 100644
--- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
+++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
@@ -729,14 +729,12 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque
</div>;
} else {
- //subtracted 250 for offset
var str: string = "";
for (var i = 0; i < this._pointsX.length; i++) {
- var x = 0;
- x = this._pointsX[i] - 250;
- str += x.toString();
+ const pt = this.props.getContainerTransform().transformPoint(this._pointsX[i], this._pointsY[i]);
+ str += pt[0].toString();
str += ",";
- str += this._pointsY[i].toString();
+ str += pt[1].toString();
str += (" ");
}