8000 Hover not recognized right next to Area · Issue #576 · emilk/egui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Hover not recognized right next to Area #576
Closed
@mankinskin

Description

@mankinskin

Peek 2021-07-23 19-34

This is what the container looks like:

    let area = Area::new(menu_id)
        .order(Order::Foreground)
        .fixed_pos(pos)
        .drag_bounds(Rect::EVERYTHING);
    let mut frame = Frame::menu(&style);
    frame.shadow = Default::default();
    area.show(ctx, |ui| {
        frame
            .show(ui, |ui| {
                //style.visuals.widgets.active.bg_fill = Color32::TRANSPARENT;
                style.visuals.widgets.active.bg_stroke = Stroke::none();
                //style.visuals.widgets.hovered.bg_fill = Color32::TRANSPARENT;
                style.visuals.widgets.hovered.bg_stroke = Stroke::none();
                style.visuals.widgets.inactive.bg_fill = Color32::TRANSPARENT;
                style.visuals.widgets.inactive.bg_stroke = Stroke::none();
                ui.set_style(style);
                ui.with_layout(Layout::top_down_justified(Align::LEFT), add_contents)
                    .inner
            })
    })

The same thing happens on master with the menu:
Peek 2021-07-23 19-38

debug on hover also shows that in that area none of the two overlapping widgets are hovered.

I suspect it is something with Context::interact, but I didn't figure it out yet. Any help would be appreciated 👍🏻

required for #543

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

      0