Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit bf77fbb

Browse files
tom5760mhevery
authored andcommitted
fix(browser): patchTimer cancelAnimationFrame (#353)
Call cancelAnimationFrame instead of cancelMicroTaskAnimationFrame. Fixes #326 and Leaflet/Leaflet#4588
1 parent 9a0aa4a commit bf77fbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/browser/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const _global = typeof window == 'undefined' ? global : window;
1414
patchTimer(_global, set, clear, 'Timeout');
1515
patchTimer(_global, set, clear, 'Interval');
1616
patchTimer(_global, set, clear, 'Immediate');
17-
patchTimer(_global, 'request', 'cancelMacroTask', 'AnimationFrame');
17+
patchTimer(_global, 'request', 'cancel', 'AnimationFrame');
1818
patchTimer(_global, 'mozRequest', 'mozCancel', 'AnimationFrame');
1919
patchTimer(_global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');
2020

0 commit comments

Comments
 (0)