Skip to content

Commit 77eb33d

Browse files
committed
Merge branch 'main' of github.com:NativeScript/angular into feat/angular-19
2 parents 253f4c1 + 6c8a2b3 commit 77eb33d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/angular/src/lib/nativescript-ng-zone.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,8 @@ export class NativeScriptNgZone implements NgZone {
153153
self.shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection;
154154
self.lastRequestAnimationFrameId = -1;
155155
self.nativeRequestAnimationFrame = function (cb) {
156-
// const nativeDispatchToMainThread = Utils[Zone.__symbol__('dispatchToMainThread')] || Utils.dispatchToMainThread;
157-
// nativeDispatchToMainThread(cb);
158-
const nativeDispatchToMainThread = global[Zone.__symbol__('setTimeout')] || global.setTimeout;
159-
nativeDispatchToMainThread(cb, 1000);
156+
const nativeDispatchToMainThread = Utils[Zone.__symbol__('dispatchToMainThread')] || Utils.dispatchToMainThread;
157+
nativeDispatchToMainThread(cb);
160158
return currentRafId++;
161159
};
162160
forkInnerZoneWithAngularBehavior(self);

0 commit comments

Comments
 (0)