Skip to content

Commit a1c524f

Browse files
committed
Update index.ts
1 parent baaa6da commit a1c524f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/scan/src/new-outlines/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,9 @@ export const getCanvasEl = () => {
395395
deltaY,
396396
});
397397
} else {
398-
requestAnimationFrame(() => {
399-
updateScroll(activeOutlines, deltaX, deltaY);
400-
});
398+
requestAnimationFrame(
399+
updateScroll.bind(null, activeOutlines, deltaX, deltaY),
400+
);
401401
}
402402
isScrollScheduled = false;
403403
}, 16 * 2);

0 commit comments

Comments
 (0)