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

High Resolution Scroll #117

Open
stefnotch opened this issue Nov 2, 2023 · 0 comments
Open

High Resolution Scroll #117

stefnotch opened this issue Nov 2, 2023 · 0 comments

Comments

@stefnotch
Copy link

stefnotch commented Nov 2, 2023

On Windows, a mouse can report higher resolution scroll events by returning a value that is not a multiple of WHEEL_DELTA.

As in, delta can be a value like 1.

Ok(WM_MOUSEHWHEEL) => {
            let delta = get_delta(lpdata) as c_short;
            Some(EventType::Wheel {
                delta_x: (delta / WHEEL_DELTA) as i64,
                delta_y: 0,
            })
        }

This library should ideally expose that information.

There's also another variant of high resolution scrolling (pixel level scrolling, used for touchscreens), but that's a separate issue. See also https://docs.rs/winit/latest/winit/event/enum.MouseScrollDelta.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant