diff options
| author | bobzel <zzzman@gmail.com> | 2022-07-21 13:28:25 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-07-21 13:28:25 -0400 |
| commit | 8f0752368e4c5831b909050940dff42171d51ae7 (patch) | |
| tree | 0671a690c3470eefb51104af133b6dd5aa81337a /src/client/views/nodes/PDFBox.tsx | |
| parent | 2c833fe4e7915b8219c6b48abb596e4359744750 (diff) | |
fixed undo for opening/closing sidebar for pdf/web/text. fixed lightboxview for pdf's with smaller heights.
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
| -rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index f41f6a1ad..fe18abba9 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -302,8 +302,11 @@ export class PDFBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps } return false; }, - () => batch.end(), - () => this.toggleSidebar() + (e, movement, isClick) => !isClick && batch.end(), + () => { + this.toggleSidebar(); + batch.end(); + } ); }; @observable _previewNativeWidth: Opt<number> = undefined; |
