aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-09-08 13:30:36 -0400
committerbobzel <zzzman@gmail.com>2022-09-08 13:30:36 -0400
commit71f9850387c2719ed5b050db4130fa15852cb38d (patch)
treea1f9f579ea47625118ecd423e6ba427620f6a49a /src
parentddc5cc18d006203df204d1ee21cec31cf8a5421a (diff)
fixed pinning viewScale
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/trails/PresBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx
index 50a77ce57..1439ae5d5 100644
--- a/src/client/views/nodes/trails/PresBox.tsx
+++ b/src/client/views/nodes/trails/PresBox.tsx
@@ -420,7 +420,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() {
const panY = NumCast(pinDoc._panY);
const pw = NumCast(pinProps.panelWidth);
const ph = NumCast(pinProps.panelHeight);
- const ps = NumCast(pinDoc._viewScale);
+ const ps = NumCast(pinDoc._viewScale, 1);
if (pw && ph && ps) {
pinDoc.presPinViewBounds = new List<number>([panX - pw / 2 / ps, panY - ph / 2 / ps, panX + pw / 2 / ps, panY + ph / 2 / ps]);
}