diff options
author | bobzel <zzzman@gmail.com> | 2021-01-11 13:37:54 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-01-11 13:37:54 -0500 |
commit | b239f049578edeefc5971f3e682e3e70e2e76132 (patch) | |
tree | 9e92ab94fe35fc3d2128c29275f4d0b2cb03cd90 /src | |
parent | a8545c5f31200d2d58696223c5050cbf9cf553ae (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 2 | ||||
-rw-r--r-- | src/client/views/nodes/PresBox.tsx | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 744683a0f..d7b0b5158 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -275,8 +275,6 @@ export class DocumentDecorations extends React.Component<{ boundsLeft: number, b // doc._width = (right - left) * element.props.ScreenToLocalTransform().Scale; doc._height = (bottom - top); doc._width = (right - left); - - } index++; } diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx index 271a7274f..90897b8fd 100644 --- a/src/client/views/nodes/PresBox.tsx +++ b/src/client/views/nodes/PresBox.tsx @@ -777,7 +777,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema> if (this.targetDoc.isInkMask) { if (this.activeItem.y !== undefined && this.activeItem.x !== undefined && - this.targetDoc.y !== undefined && + this.targetDoc.x !== undefined && this.targetDoc.y !== undefined) { const timer = (ms: number) => new Promise(res => this._presTimer = setTimeout(res, ms)); const time = 10; |