diff options
| author | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2022-07-06 13:40:45 -0700 |
|---|---|---|
| committer | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2022-07-06 13:40:45 -0700 |
| commit | b476f81fbb7b7af32fdcc2fdd9fd1e2e2fc34014 (patch) | |
| tree | 338610d3f33657b0ea940d3ca7fd77a66c573be2 /src/client/views/DocumentDecorations.tsx | |
| parent | 5fa4c9f833f7aec92b1d6ab4c30c7cc5b753c80e (diff) | |
| parent | 0906eab4135db844dc45a20d33f84e7439461c9b (diff) | |
Merge branch 'master' into geireann-eslint-prettier
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 17e135689..9dc02e3f4 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -341,6 +341,7 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number; P onPointerMove = (e: PointerEvent, down: number[], move: number[]): boolean => { const first = SelectionManager.Views()[0]; + if (!first) return false; let thisPt = { x: e.clientX - this._offX, y: e.clientY - this._offY }; var fixedAspect = Doc.NativeAspect(first.layoutDoc); InkStrokeProperties.Instance._lock && |
