From 9620d149a2051bc9b42a037b1c65b61deebd11fa Mon Sep 17 00:00:00 2001
From: Sam Wilkins <samwilkins333@gmail.com>
Date: Fri, 17 Jan 2020 15:27:39 -0500
Subject: scale mc view

---
 src/client/views/collections/CollectionMulticolumnView.tsx | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'src/client/views/collections/CollectionMulticolumnView.tsx')

diff --git a/src/client/views/collections/CollectionMulticolumnView.tsx b/src/client/views/collections/CollectionMulticolumnView.tsx
index 2cb91f239..955e87f13 100644
--- a/src/client/views/collections/CollectionMulticolumnView.tsx
+++ b/src/client/views/collections/CollectionMulticolumnView.tsx
@@ -248,12 +248,11 @@ class ResizeBar extends React.Component<SpacerProps> {
     private onPointerMove = ({ movementX }: PointerEvent) => {
         const { toLeft, toRight, columnUnitLength } = this.props;
         const target = movementX > 0 ? toRight : toLeft;
-        const unitLength = columnUnitLength();
-        if (target && unitLength) {
+        let scale = columnUnitLength();
+        if (target && scale) {
             const { widthUnit, widthMagnitude } = target;
-            if (widthUnit === "*") {
-                target.widthMagnitude = NumCast(widthMagnitude) - Math.abs(movementX) / unitLength;
-            }
+            scale = widthUnit === "*" ? scale : 1;
+            target.widthMagnitude = NumCast(widthMagnitude) - Math.abs(movementX) / scale;
         }
     }
 
-- 
cgit v1.2.3-70-g09d2

