File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ import * as TimerProgress from "../test/timer-progress";
3737import * as LiveBurst from "./live-burst" ;
3838import * as LiveSpeed from "./live-speed" ;
3939import * as Monkey from "./monkey" ;
40- import { animate } from "animejs" ;
4140import {
4241 blurInputElement ,
4342 focusInputElement ,
@@ -1098,15 +1097,15 @@ export async function scrollTape(noAnimation = false): Promise<void> {
10981097 PaceCaret . caret . handleTapeScroll ( caretScrollOptions ) ;
10991098
11001099 if ( Config . smoothLineScroll ) {
1101- animate ( wordsEl , {
1100+ wordsEl . animate ( {
11021101 marginLeft : newMargin ,
11031102 duration,
11041103 ease,
11051104 } ) ;
11061105
11071106 for ( let i = 0 ; i < afterNewlinesNewMargins . length ; i ++ ) {
11081107 const newMargin = afterNewlinesNewMargins [ i ] ?? 0 ;
1109- animate ( afterNewLineEls [ i ] as ElementWithUtils , {
1108+ ( afterNewLineEls [ i ] as ElementWithUtils ) ?. animate ( {
11101109 marginLeft : newMargin ,
11111110 duration,
11121111 ease,
@@ -1206,7 +1205,7 @@ export async function lineJump(
12061205
12071206 if ( Config . smoothLineScroll ) {
12081207 lineTransition = true ;
1209- await Misc . promiseAnimate ( wordsEl . native , {
1208+ await wordsEl . promiseAnimate ( {
12101209 marginTop : newMarginTop ,
12111210 duration,
12121211 } ) ;
You can’t perform that action at this time.
0 commit comments