chrv-components 1.12.133 → 1.12.134

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.
Binary file
@@ -4071,32 +4071,17 @@ class ChrPopoverDirective {
4071
4071
  });
4072
4072
  };
4073
4073
  this.setupSubject = () => {
4074
- combineLatest([
4075
- this.isHostHovered$,
4076
- this.isTargetHovered$,
4077
- this.lastKnowMousePosition,
4078
- ])
4079
- .pipe(map(([hostHovered, targetHovered, mouse]) => hostHovered.hover ||
4074
+ combineLatest([this.isHostHovered$, this.isTargetHovered$])
4075
+ .pipe(map(([hostHovered, targetHovered]) => hostHovered.hover ||
4080
4076
  targetHovered.hover ||
4081
4077
  this.isInsideHost(hostHovered.position?.x, hostHovered.position.y) ||
4082
- this.isInsideTarget(targetHovered.position?.x, targetHovered.position.y)), switchMap((isInside) => {
4083
- if (isInside) {
4084
- return of(true);
4085
- }
4086
- else {
4087
- return timer(100).pipe(map(() => false));
4088
- }
4089
- }), takeUntilDestroyed(this.destroyRef))
4078
+ this.isInsideTarget(targetHovered.position?.x, targetHovered.position.y)), switchMap((isInside) => timer(100).pipe(map(() => isInside))), takeUntilDestroyed(this.destroyRef))
4090
4079
  .subscribe((isInside) => {
4091
- if (isInside) {
4092
- if (!this.isOpen()) {
4093
- this.showPopover();
4094
- }
4080
+ if (isInside && !this.isOpen()) {
4081
+ this.showPopover();
4095
4082
  }
4096
4083
  else {
4097
- if (this.isOpen()) {
4098
- this.hidePopover();
4099
- }
4084
+ this.hidePopover();
4100
4085
  }
4101
4086
  });
4102
4087
  };