Merge pull request #4922 from mempool/mononaut/actually-fix-sticky-button

Actually fix sticky button
This commit is contained in:
wiz 2024-04-08 21:32:28 +09:00 committed by GitHub
commit b35422ff9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -398,7 +398,7 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges
@HostListener('window:scroll', ['$event']) // for window scroll events @HostListener('window:scroll', ['$event']) // for window scroll events
onScroll() { onScroll() {
if (this.estimate && this.user && !this.cashappCTA?.nativeElement) { if (this.estimate && !this.cashappCTA?.nativeElement) {
setTimeout(() => { setTimeout(() => {
this.onScroll(); this.onScroll();
}, 200); }, 200);