File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
demo/@/components/custom/animation-controls Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -824,15 +824,17 @@ const highlightCSS = (el?: HTMLElement) => {
824
824
pres .forEach (highlight );
825
825
};
826
826
827
- const updateAllStrings = debounce ( async () => {
827
+ const updateAllStrings = async () => {
828
828
templateFrameStrings = [];
829
829
830
830
templateFrameStrings = await CSSKeyframesToStrings (animation );
831
831
832
832
const keyframesString = await updateCSSAnimationKeyframesStringFromAnimation ();
833
833
834
834
return keyframesString ;
835
- }, 100 );
835
+ };
836
+
837
+ const debouncedUpdateAllStrings = debounce (updateAllStrings , 100 );
836
838
837
839
const updateAllStringsAndAnimation = async () => {
838
840
const reversedKeyframesString = await updateAllStrings ();
@@ -847,7 +849,7 @@ watch(
847
849
);
848
850
849
851
watch (animation .templateFrames , async () => {
850
- updateAllStrings ();
852
+ debouncedUpdateAllStrings ();
851
853
});
852
854
853
855
watch (
You can’t perform that action at this time.
0 commit comments