aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-23 02:09:10 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-23 02:09:10 -0400
commit5bd4d4804f9feea0fd16d8aabf040ca14cf205d1 (patch)
tree9cb5bd9452c1104634ddcf1e36b5da9812b35535 /src/client/views/nodes/CollectionFreeFormDocumentView.tsx
parent72f614f023a4bac6a2f0b63a1b1a16e6f4545c7a (diff)
fixed performance of panning with something selected by making TemplateMenu ot render unless it has explicitly been activated.
Diffstat (limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r--src/client/views/nodes/CollectionFreeFormDocumentView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
index 615b05e43..4b282b0c9 100644
--- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
+++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
@@ -31,7 +31,7 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF
random(min: number, max: number) { // min should not be equal to max
const mseed = Math.abs(this.X * this.Y);
const seed = (mseed * 9301 + 49297) % 233280;
- var rnd = seed / 233280;
+ const rnd = seed / 233280;
return min + rnd * (max - min);
}
get displayName() { return "CollectionFreeFormDocumentView(" + this.props.Document.title + ")"; } // this makes mobx trace() statements more descriptive