chrv-components 1.12.142 → 1.12.143

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
@@ -4023,8 +4023,8 @@ class ChrPopoverDirective {
4023
4023
  this.isHostHovered$ = new BehaviorSubject(false);
4024
4024
  this.isTargetHovered$ = new BehaviorSubject(false);
4025
4025
  this.lastKnownMousePosition$ = new BehaviorSubject({
4026
- x: 0,
4027
- y: 0,
4026
+ x: -1,
4027
+ y: -1,
4028
4028
  });
4029
4029
  // private readonly isInsidePopover$ = new BehaviorSubject<boolean>(false);
4030
4030
  this.destroyRef = inject(DestroyRef);
@@ -4191,10 +4191,14 @@ class ChrPopoverDirective {
4191
4191
  return (x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom);
4192
4192
  };
4193
4193
  this.isInsideHost = (x, y) => {
4194
+ if (x < 0 || y < 0)
4195
+ return false;
4194
4196
  const rect = this.hostElement().getBoundingClientRect();
4195
4197
  return this.isInsideRect(x, y, rect);
4196
4198
  };
4197
4199
  this.isInsideTarget = (x, y) => {
4200
+ if (x < 0 || y < 0)
4201
+ return false;
4198
4202
  const rect = this.targetElement().getBoundingClientRect();
4199
4203
  return this.isInsideRect(x, y, rect);
4200
4204
  };