chrv-components 1.12.132 → 1.12.133
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
|
|
@@ -4078,7 +4078,8 @@ class ChrPopoverDirective {
|
|
|
4078
4078
|
])
|
|
4079
4079
|
.pipe(map(([hostHovered, targetHovered, mouse]) => hostHovered.hover ||
|
|
4080
4080
|
targetHovered.hover ||
|
|
4081
|
-
this.
|
|
4081
|
+
this.isInsideHost(hostHovered.position?.x, hostHovered.position.y) ||
|
|
4082
|
+
this.isInsideTarget(targetHovered.position?.x, targetHovered.position.y)), switchMap((isInside) => {
|
|
4082
4083
|
if (isInside) {
|
|
4083
4084
|
return of(true);
|
|
4084
4085
|
}
|
|
@@ -4171,6 +4172,14 @@ class ChrPopoverDirective {
|
|
|
4171
4172
|
this.isInsideRect = (x, y, rect) => {
|
|
4172
4173
|
return (x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom);
|
|
4173
4174
|
};
|
|
4175
|
+
this.isInsideHost = (x, y) => {
|
|
4176
|
+
const rect = this.hostElement().getBoundingClientRect();
|
|
4177
|
+
return this.isInsideRect(x, y, rect);
|
|
4178
|
+
};
|
|
4179
|
+
this.isInsideTarget = (x, y) => {
|
|
4180
|
+
const rect = this.targetElement().getBoundingClientRect();
|
|
4181
|
+
return this.isInsideRect(x, y, rect);
|
|
4182
|
+
};
|
|
4174
4183
|
this.isPointerInsideElements = (x, y) => {
|
|
4175
4184
|
// private isPointerInsideElements = (event: MouseEvent): boolean => {
|
|
4176
4185
|
const hostRect = this.hostElement().getBoundingClientRect();
|