Skip to content

Haze effect does not work properly on desktop when navigating between pages #502

@Oveys-Dust

Description

@Oveys-Dust

Information

  • Haze version: 1.3.0
  • Platform: Windows
  • Platform version: Windows 10, 11

Expected Behavior

I have made a localHazeState to pass throu all my classes because there is only a background is using . so every element above of it when use the hazeEffect must blur behind of itself which is background.

Actual Behavior

the odd thing that happens is that if u move the app window to a new position and change the page by navigator or sth else, components that has hazeEffect on their modifier does not properly update their behind image.

Steps to Reproduce the Problem

Please include reproducible code where possible

  1. move application window to new position
  2. change the page by navigator or sth similar

this is the haze provider :
val LocalHazeState = compositionLocalOf {
error("HazeState not provided!")
}

@composable
fun ProvideHazeState(
hazeState: HazeState,
content: @composable () -> Unit
) {
CompositionLocalProvider(LocalHazeState provides hazeState) {
content()
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions