aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-07-10 11:25:08 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-07-10 11:25:08 -0400
commitd064024d9ab2cd8e836df5ba75e064d77617445b (patch)
tree4f8660ca822a088975cee66d37c1a2cd7c5ce4cf
parentb9ba531c64fe7926a6794ab57e4989e1ea6c6992 (diff)
from last
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index 3fdf6683e..2191021d2 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -1194,7 +1194,7 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P
}
continuePan = (deltaX: number, deltaY: number) => {
- setTimeout(() => {
+ setTimeout(action(() => {
const dragY = this._lastClientY;
const dragX = this._lastClientX;
if (dragY !== undefined && dragX !== undefined && this._marqueeRef.current) {
@@ -1205,7 +1205,7 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P
this.continuePan(deltaX, deltaY);
}
} else this._lastClientY !== undefined && this._lastClientX !== undefined && this.continuePan(deltaX, deltaY);
- }, 50);
+ }), 50);
}
promoteCollection = undoBatch(action(() => {