Skip to content

10,000 Textbox in Scroll is completely unresponsive to scrolling with mouse wheel/trackpad #1990

Open
@maan2003

Description

@maan2003
use druid::widget::{Flex, TextBox};
use druid::{AppLauncher, Widget, WidgetExt, WindowDesc};

pub fn main() {
    let window = WindowDesc::new(build_widget());
    AppLauncher::with_window(window)
        .log_to_console()
        .launch("".to_string())
        .expect("launch failed");
}

fn build_widget() -> impl Widget<String> {
    let mut col = Flex::column();
    for _ in 0..10000 {
        col.add_child(TextBox::new());
    }
    col.scroll().vertical()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    perfperformance-related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions