Skip to content

Response::clicked_elsewhere returns false when clicking on a layer above the widget #5794

@lucasmerlin

Description

@lucasmerlin

Describe the bug
When clicking on an area shown above a widget, that widget's clicked_elsewhere is false. I think it should be true.

To Reproduce
Reproducing on egui.rs was tricky but I found a way:

Screen.Recording.2025-03-13.at.16.32.17.mov

Clicking on the tooltip doesn't close the colorpicker, if the pointer is still inside the pickers rect. I'd expect it to close no matter where the user clicked.

This also affects the Popup, where CloseOnClick doesn't close the popup when clicking above the source Responses rect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokeneguirerunDesired for Rerun.io

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions