这是indexloc提供的服务,不要输入任何密码
Skip to content

Simulating scroll doesn't work on Windows #39

@maxbla

Description

@maxbla

Changing the event in test_listen_and_simulate() to EventType::Wheel{delta_x: 0, delta_y: -1} (or delta_y: 1) gives a test failure because simulating wheel events does nothing! Print-debugging indicates that listening for scroll events with a hardware mouse works as expected. And finally, I wrote a snippet with the buggy behavior.

fn main() {
    loop {
        simulate(&EventType::Wheel {
            delta_x: 0,
            delta_y: -1,
        }).unwrap();
        std::thread::sleep(std::time::Duration::from_millis(100))
    }
}

details: Windows 10 version 1903, rdev master branch

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