diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-15 20:55:45 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-15 20:55:45 -0400 |
| commit | 2cc83f81afa317c693aa45d3a2e1497ef7b2d477 (patch) | |
| tree | 0a2a85e2d20f6c2916c3f916c9be30b17950a761 /src/client/views/GestureOverlay.tsx | |
| parent | 5d07f4f174cc14e6bff386411c6e577e9ad9fa80 (diff) | |
fixed iconifying cropped images to show the correct image.
Diffstat (limited to 'src/client/views/GestureOverlay.tsx')
| -rw-r--r-- | src/client/views/GestureOverlay.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/GestureOverlay.tsx b/src/client/views/GestureOverlay.tsx index 317f5f5d7..6afe64868 100644 --- a/src/client/views/GestureOverlay.tsx +++ b/src/client/views/GestureOverlay.tsx @@ -847,7 +847,7 @@ export class GestureOverlay extends Touchable { @computed get elements() { const selView = SelectionManager.Views().lastElement(); - const width = Number(ActiveInkWidth()) * NumCast(selView?.rootDoc.viewScale, 1) / (selView?.props.ScreenToLocalTransform().Scale || 1); + const width = Number(ActiveInkWidth()) * NumCast(selView?.rootDoc._viewScale, 1) / (selView?.props.ScreenToLocalTransform().Scale || 1); const rect = this._overlayRef.current?.getBoundingClientRect(); const B = { left: -20000, right: 20000, top: -20000, bottom: 20000, width: 40000, height: 40000 }; //this.getBounds(this._points, true); B.left = B.left - width / 2; |
