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

+ 0 - 6
inspector/src/components/actionTabs/tabs/propertyGrids/animations/timeline.tsx

@@ -30,7 +30,6 @@ export class Timeline extends React.Component<ITimelineProps, { selected: IAnima
         event.preventDefault();
         this.props.onCurrentFrameChange(this.props.currentFrame + 1);
         (this._scrollable.current as HTMLDivElement).scrollLeft = this.props.currentFrame * 5;
-
     }
 
     previousFrame(event: React.MouseEvent<HTMLDivElement>) {
@@ -61,11 +60,6 @@ export class Timeline extends React.Component<ITimelineProps, { selected: IAnima
         }
     }
 
-    scrollToFrame(frame: number) {
-        // scroll to current frame
-        (this._scrollable.current as HTMLDivElement).scrollLeft = frame * 10;
-    }
-
     render() {
         return (
             <>