aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
diff options
context:
space:
mode:
authorStanley Yip <33562077+yipstanley@users.noreply.github.com>2019-07-17 14:56:52 +0000
committerGitHub <noreply@github.com>2019-07-17 14:56:52 +0000
commit1610f9e7bfac3de61d3b6de108a0664e1266e5ba (patch)
tree78cb59565eb78955e089a11d96011da79e0c81c7 /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
parentba25d48d52f6db6021f5149e39021f651af22317 (diff)
parent253813f3ed75c5bbc08f32a1e822ff922bfe185b (diff)
Merge pull request #212 from browngraphicslab/small_fix_0716
fixed undo on panning
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index 06055a04d..4532239d6 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -267,7 +267,7 @@ export class CollectionFreeFormView extends CollectionSubView(PanZoomDocument) {
// this.props.Document.panX = panX;
// this.props.Document.panY = panY;
if (this.props.Document.scrollY) {
- this.props.Document.scrollY = panY;
+ this.props.Document.scrollY = panY - this.props.Document[HeightSym]();
}
}