diff options
author | Eleanor Eng <eleanor_eng@brown.edu> | 2019-07-19 11:42:25 -0400 |
---|---|---|
committer | Eleanor Eng <eleanor_eng@brown.edu> | 2019-07-19 11:42:25 -0400 |
commit | 87b4d7ab7a28a01335dd081fc85c010a22aae5d1 (patch) | |
tree | 70420cbbabf30ead6fab69dfb85aee2c658ae492 | |
parent | e0709211b80f5e69384318ebe007c877cd6dbfd5 (diff) |
it's just 0
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 3 |
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)}%`); } } |