aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEleanor Eng <eleanor_eng@brown.edu>2019-07-19 11:42:25 -0400
committerEleanor Eng <eleanor_eng@brown.edu>2019-07-19 11:42:25 -0400
commit87b4d7ab7a28a01335dd081fc85c010a22aae5d1 (patch)
tree70420cbbabf30ead6fab69dfb85aee2c658ae492 /src
parente0709211b80f5e69384318ebe007c877cd6dbfd5 (diff)
it's just 0
Diffstat (limited to 'src')
-rw-r--r--src/client/views/DocumentDecorations.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index bf880b9c3..60dcf06cd 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -339,8 +339,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
document.addEventListener("pointerup", this.onRadiusUp);
}
if (!this._isMoving) {
- let dist = Math.sqrt((e.clientX - this._radiusDown[0]) * (e.clientX - this._radiusDown[0]) + (e.clientY - this._radiusDown[1]) * (e.clientY - this._radiusDown[1]));
- SelectionManager.SelectedDocuments().map(dv => dv.props.Document.borderRounding = Doc.GetProto(dv.props.Document).borderRounding = `${Math.min(100, dist)}%`);
+ SelectionManager.SelectedDocuments().map(dv => dv.props.Document.borderRounding = Doc.GetProto(dv.props.Document).borderRounding = `${Math.min(100, 0)}%`);
}
}