@eric-emg/symphiq-components 1.2.374 → 1.2.375
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.
|
@@ -88718,8 +88718,8 @@ class ShopProfileQuestionAnswerComponent {
|
|
|
88718
88718
|
const newStickyState = !entry.isIntersecting;
|
|
88719
88719
|
this.stickyChangeCount++;
|
|
88720
88720
|
console.log(`[StickyDebug #${this.stickyChangeCount}] isIntersecting: ${entry.isIntersecting}, boundingClientRect.top: ${entry.boundingClientRect.top.toFixed(1)}, intersectionRatio: ${entry.intersectionRatio.toFixed(3)}, currentSticky: ${this.stickyState}, newSticky: ${newStickyState}, timeSinceLastChange: ${timeSinceLastChange}ms`);
|
|
88721
|
-
// Debounce: ignore changes within
|
|
88722
|
-
if (timeSinceLastChange <
|
|
88721
|
+
// Debounce: ignore changes within 250ms (longer than the 200ms CSS transition) to prevent flip-flopping
|
|
88722
|
+
if (timeSinceLastChange < 250 && this.stickyState !== newStickyState) {
|
|
88723
88723
|
console.log(`[StickyDebug] DEBOUNCED - ignoring change from ${this.stickyState} to ${newStickyState} (only ${timeSinceLastChange}ms since last change)`);
|
|
88724
88724
|
return;
|
|
88725
88725
|
}
|