We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fcae3a9 + b937771 commit e11c28aCopy full SHA for e11c28a
src/dom/index.ts
@@ -29,16 +29,6 @@ function installGlobalShims(): SvelteNativeDocument {
29
30
window.window = global;
31
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
- })
42
43
window.getComputedStyle = (node: NativeViewElementNode<View>) => {
44
return node.nativeView.style;
0 commit comments