Skip to content

Commit 556eec9

Browse files
committed
note to our future selves
1 parent 520a140 commit 556eec9

File tree

1 file changed

+2
-0
lines changed
  • packages/svelte/src/internal/client

1 file changed

+2
-0
lines changed

packages/svelte/src/internal/client/loop.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { raf } from './timing.js';
77
* @returns {void}
88
*/
99
function run_tasks() {
10+
// use `raf.now()` instead of the `requestAnimationFrame` callback argument, because
11+
// otherwise things can get wonky https://github.com/sveltejs/svelte/pull/14541
1012
const now = raf.now();
1113

1214
raf.tasks.forEach((task) => {

0 commit comments

Comments
 (0)