Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DON-1092 – fix campaign card grid input focus breaking Safari scroll positions #1780

Merged
merged 5 commits into from
Nov 27, 2024

Conversation

NoelLH
Copy link
Contributor

@NoelLH NoelLH commented Nov 27, 2024

No description provided.

@NoelLH NoelLH self-assigned this Nov 27, 2024
@@ -124,6 +130,16 @@ export class ExploreComponent implements OnDestroy, OnInit {
}

onScroll() {
if (this.scroller.getScrollPosition()[1] < this.smallestSignificantScrollPx) {
this.blurredSinceLastMajorScroll = false;
return;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This early return may stop some more() calls, but since we do the equivalent on meta-campaign already I can't see that causing major problems.

@@ -124,6 +130,16 @@ export class ExploreComponent implements OnDestroy, OnInit {
}

onScroll() {
if (this.scroller.getScrollPosition()[1] < this.smallestSignificantScrollPx) {
this.blurredSinceLastMajorScroll = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I'm following the logic here. This has a small scroll position so I guess is a minor scroll? So why does it affect the state of blurredSinceLastMajorScroll?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bdsl The idea is that if you go back to the top, you are more likely to be about to interact with the search fields. So there's a reasonable chance that it will be useful to blur afresh when you're done. I'll add a comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@bdsl bdsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NoelLH NoelLH merged commit 3112028 into develop Nov 27, 2024
4 checks passed
@NoelLH NoelLH deleted the DON-1092-search-scroll-refinement branch November 27, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants