Skip to content

Floating-Style panels always hide even when the mouse is within the panel. #39

@davidwernhart

Description

@davidwernhart

Hey, thank you very much for this great framework!

I am having a small issue. When a dynamic notch is shown on my MacBook's screen, it appears for 4 seconds and then disappears when I don't interact with it. However, when I move the mouse into the notch, it stays there for as long as the mouse is in there. This is the behaviour I want (although I think it should be documented a little better).

When I do exactly the same but with my external monitor without a notch (or use the .floating style), the panel always disappears after 4 seconds, even when the mouse cursor is within the panel.

let dynamicNotch = DynamicNotch(hoverBehavior: .keepVisible) {
        MyView()
}

...

Task.init{
    await self.dynamicNotch.expand()
    try await Task.sleep(for: .seconds(4))
    await self.dynamicNotch.hide()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions