diff options
author | bobzel <zzzman@gmail.com> | 2020-09-18 23:07:08 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-18 23:07:08 -0400 |
commit | 7a12eccf31f0a04800b0ddd47cd18fcbcfcadb93 (patch) | |
tree | dcc10659a84f30b0570effe2defe3db6f8fd3764 /src/client/views/DocumentDecorations.tsx | |
parent | 2e7078b74e19c2f6958b92a3f53c195d0dd9e223 (diff) |
change imageBox to choose img size based on PanelWidth, not document width. fixed textboxcommetn date display
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 257ddc302..9a49093b4 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -334,7 +334,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> const bounds = e.currentTarget.getBoundingClientRect(); this._offX = this._resizeHdlId.toLowerCase().includes("left") ? bounds.right - e.clientX : bounds.left - e.clientX; this._offY = this._resizeHdlId.toLowerCase().includes("top") ? bounds.bottom - e.clientY : bounds.top - e.clientY; - this.Interacting = true; + this.Interacting = true; // turns off pointer events on things like youtube videos and web pages so that dragging doesn't get "stuck" when cursor moves over them this._resizeUndo = UndoManager.StartBatch("DocDecs resize"); SelectionManager.SelectedDocuments()[0].props.setupDragLines?.(e.ctrlKey || e.shiftKey); } |