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

Button hot state is not properly shown for children of Scroll #956

Open
xStrom opened this issue May 17, 2020 · 2 comments
Open

Button hot state is not properly shown for children of Scroll #956

xStrom opened this issue May 17, 2020 · 2 comments
Labels
bug does not behave the way it is supposed to

Comments

@xStrom
Copy link
Member

xStrom commented May 17, 2020

This can be seen with the list example, especially if the debug_paint_layout is turned off. Hover over a button and then scroll a bit. The button should no longer have a white border but it does.

@xStrom xStrom added the bug does not behave the way it is supposed to label May 17, 2020
@richard-uk1
Copy link
Collaborator

richard-uk1 commented Nov 15, 2020

I've just come across this problem. Repro example below.

use druid::widget::{List, Scroll, Switch, WidgetExt};
use druid::{AppLauncher, Widget, WindowDesc};
use im::{vector, Vector};

fn build_widget() -> impl Widget<Vector<bool>> {
    Scroll::new(List::new(|| Switch::new())).vertical().center()
}

pub fn main() {
    let window = WindowDesc::new(build_widget).title("Scroll evt error");
    AppLauncher::with_window(window)
        .use_simple_logger()
        .launch(vector![false])
        .expect("launch failed");
}

It requires both the list and the scroll - it is not present with either on its own.

@richard-uk1
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug does not behave the way it is supposed to
Projects
None yet
Development

No branches or pull requests

2 participants