Skip to content

Commit e11c28a

Browse files
committed
2 parents fcae3a9 + b937771 commit e11c28a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/dom/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ function installGlobalShims(): SvelteNativeDocument {
2929

3030
window.window = global;
3131
window.document = new SvelteNativeDocument();
32-
33-
// As of NS 6.3, the NS provided requestAnimationFrame breaks svelte by invoking the callback immediately
34-
// instead of next event loop, We force ours instead.
35-
Object.defineProperty(global, 'requestAnimationFrame', {
36-
value: (action: (now: DOMHighResTimeStamp) => {}) => {
37-
setTimeout(() => action(window.performance.now()), 33); //about 30 fps
38-
},
39-
configurable: true,
40-
writable: true,
41-
})
4232

4333
window.getComputedStyle = (node: NativeViewElementNode<View>) => {
4434
return node.nativeView.style;

0 commit comments

Comments
 (0)