Alejandro Toledo преди 5 години
родител
ревизия
f4f1256fe0
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      inspector/src/components/actionTabs/tabs/propertyGrids/animations/timeline.tsx

+ 3 - 1
inspector/src/components/actionTabs/tabs/propertyGrids/animations/timeline.tsx

@@ -71,7 +71,9 @@ export class Timeline extends React.Component<
 
   calculateScrollWidth(start: number, end: number) {
     if (this._scrollContainer.current && this.props.animationLimit !== 0) {
-      const containerWidth = this._scrollContainer.current.clientWidth - 6;
+      const containerMarginLeftRight = 6;
+      const containerWidth =
+        this._scrollContainer.current.clientWidth - containerMarginLeftRight;
       const scrollFrameLimit = this.props.animationLimit;
       const scrollFrameLength = end - start;
       const widthPercentage = Math.round(