@webqit/webflo 0.20.41 → 0.20.42
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/package.json
CHANGED
|
@@ -498,8 +498,6 @@ export class ModalElement extends BaseElement {
|
|
|
498
498
|
};
|
|
499
499
|
|
|
500
500
|
const observer = new IntersectionObserver((entries) => {
|
|
501
|
-
if (!this.#userScrolled) return;
|
|
502
|
-
|
|
503
501
|
for (const entry of entries) {
|
|
504
502
|
// Minmax events
|
|
505
503
|
if (entry.target === this.#spacingElement) {
|
|
@@ -508,7 +506,8 @@ export class ModalElement extends BaseElement {
|
|
|
508
506
|
}
|
|
509
507
|
|
|
510
508
|
// For auto-closing
|
|
511
|
-
if (
|
|
509
|
+
if (this.#userScrolled
|
|
510
|
+
&& entry.target === this.#sentinelElement
|
|
512
511
|
&& entry.isIntersecting
|
|
513
512
|
&& entry.intersectionRatio >= 0.8) {
|
|
514
513
|
this.hidePopover();
|