@ethlete/core 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/directives/animatable/animatable.directive.mjs +6 -4
- package/esm2020/lib/directives/animatable/index.mjs +2 -0
- package/esm2020/lib/directives/animated-lifecycle/animated-lifecycle.directive.mjs +2 -2
- package/fesm2015/ethlete-core.mjs +4 -2
- package/fesm2015/ethlete-core.mjs.map +1 -1
- package/fesm2020/ethlete-core.mjs +4 -2
- package/fesm2020/ethlete-core.mjs.map +1 -1
- package/lib/directives/animatable/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1061,14 +1061,16 @@ class AnimatableDirective {
|
|
|
1061
1061
|
this._totalActiveAnimationCount$.next(this._totalActiveAnimationCount$.value - this._hostActiveAnimationCount$.value);
|
|
1062
1062
|
this._hostActiveAnimationCount$.next(0);
|
|
1063
1063
|
merge(fromEvent(el, 'animationstart'), fromEvent(el, 'transitionstart'))
|
|
1064
|
-
.pipe(
|
|
1064
|
+
.pipe(filter((e) => e.target === el), // skip events from children
|
|
1065
|
+
tap(() => {
|
|
1065
1066
|
const count = this._hostActiveAnimationCount$.value + 1;
|
|
1066
1067
|
this._hostActiveAnimationCount$.next(count);
|
|
1067
1068
|
this._totalActiveAnimationCount$.next(count);
|
|
1068
1069
|
}), takeUntil(this._destroy$), takeUntil(this._animatedElement$.pipe(skip(1))))
|
|
1069
1070
|
.subscribe();
|
|
1070
1071
|
merge(fromEvent(el, 'animationend'), fromEvent(el, 'animationcancel'), fromEvent(el, 'transitionend'), fromEvent(el, 'transitioncancel'))
|
|
1071
|
-
.pipe(
|
|
1072
|
+
.pipe(filter((e) => e.target === el), // skip events from children
|
|
1073
|
+
tap(() => {
|
|
1072
1074
|
const count = this._hostActiveAnimationCount$.value - 1;
|
|
1073
1075
|
this._hostActiveAnimationCount$.next(count);
|
|
1074
1076
|
this._totalActiveAnimationCount$.next(count);
|