aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFMenu.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-03 12:23:40 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-03 12:23:40 -0400
commit7259b8562e8097ff5b6708cf15bb2f33e9efb148 (patch)
tree7196706f7c34658a51f4eaece4e3cda688dee76e /src/client/views/pdf/PDFMenu.tsx
parentb4958eac84339dd7a88c964a9c52e89481048f55 (diff)
fixed ButtonBox drop to allow reordering buttons in a collection. fixed pdfmenu to allow pnning. fixed panning in nested freeformviews.
Diffstat (limited to 'src/client/views/pdf/PDFMenu.tsx')
-rw-r--r--src/client/views/pdf/PDFMenu.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/pdf/PDFMenu.tsx b/src/client/views/pdf/PDFMenu.tsx
index 05c70b74a..5913c5a82 100644
--- a/src/client/views/pdf/PDFMenu.tsx
+++ b/src/client/views/pdf/PDFMenu.tsx
@@ -61,11 +61,10 @@ export default class PDFMenu extends AntimodeMenu {
e.preventDefault();
}
- @action
- togglePin = (e: React.MouseEvent) => {
+ togglePin = action((e: React.MouseEvent) => {
this.Pinned = !this.Pinned;
!this.Pinned && (this.Highlighting = false);
- }
+ })
@action
highlightClicked = (e: React.MouseEvent) => {