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

[Android] Haze area isn't invalidated on overscroll #66

Closed
poliver opened this issue Dec 20, 2023 · 2 comments
Closed

[Android] Haze area isn't invalidated on overscroll #66

poliver opened this issue Dec 20, 2023 · 2 comments

Comments

@poliver
Copy link

poliver commented Dec 20, 2023

The haze area doesn't get invalidated when a haze child is stretched/moved due to an overscroll.

Screen_recording_20231220_004023.mp4
@chrisbanes
Copy link
Owner

chrisbanes commented Dec 20, 2023

Thanks for the report. Yeah I've notice the same, but I'm not sure there's much we can do here. The stretch overscroll effect is implemented via a Skia ImageFilter underneath (iirc), so I've got a feeling that they're just not going to work together.

I'll ask some of the Android graphics folks and see what they say.

@chrisbanes
Copy link
Owner

The stretch overscroll is implemented as an effect on the scrollable UI element. In this case, the LazyColumn is stretched. Haze works by telling a background element were to blur itself, meaning that the stretch effect isn't happening to the blurred background element, and thus no effect. For Haze to be part of the stretch overscroll, you need to use the Modifier.haze() on the scrollable container itself.

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

No branches or pull requests

2 participants