linebender / linebender/druid

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

Open
#1,990 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

perf
Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

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()
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the provided Rust example starting at main and build_widget, which constructs a scrollable column of 10,000 TextBox widgets. Inspect the scroll and TextBox event handling involved in this widget tree. Done means mouse-wheel and trackpad scrolling is responsive with the reproduced example.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.