Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upScroll speed too low #5660
Scroll speed too low #5660
Comments
|
Perhaps this is something that should be normalized in glutin, so we don't need to postprocess the received scroll events? |
|
Agreed with @jdm. As of now we do no munging of the scroll distance in Servo--we treat the events as describing pixels--so any fixes should be on glutin's side. |
|
Related to scrolling speed #5320 |
|
Brief notes on Qt/Gtk+/Chromium behaviors:
|
|
I just hit this. I would have guess it was 100x slower than before but looking at commit |
|
I think the issue is that there are two kinds of mouse wheel movements. There are "ticks," which is what mice traditionally send. Ticks are essentially the height of a line. Different toolkits and browser interpret these in different ways. Apple mice and some XInput devices may also have a precise value which is an absolute number of pixels to move. The core of the problem seems to be glutin cannot detect the precise events and sends a naked number when the number may either refer to ticks or absolute pixels. Thus, Servo doesn't know how to interpret the number in the wheel event. |
|
There is more information here: rust-windowing/glutin#451 |
Platforms may report scroll deltas either in chunks/lines/rows or pixels, depending on the platform API and device capabilities. If the platform reports a line/chunk-based delta then the application needs to convert the delta into a suitable number of pixels. This commit just hardcodes it to 57 as a starting point which matches the value that Firefox calculates as the max char height for the root frame on my system. Fixes servo#5660
…alton Use a faster scroll speed under X11 Platforms may report scroll deltas either in chunks/lines/rows or pixels, depending on the platform API and device capabilities. If the platform reports a line/chunk-based delta then the application needs to convert the delta into a suitable number of pixels. Apple's documentation for example states that the app should interpret the delta as a number of lines or rows to scroll, depending on the type of view. This commit just hardcodes it to 57 as a starting point which matches the value that Firefox calculates as the max char height for the root frame on my system. This depends on this Glutin PR: rust-windowing/glutin#483 Fixes #5660 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6373) <!-- Reviewable:end -->
Platforms may report scroll deltas either in chunks/lines/rows or pixels, depending on the platform API and device capabilities. If the platform reports a line/chunk-based delta then the application needs to convert the delta into a suitable number of pixels. This commit just hardcodes it to 57 as a starting point which matches the value that Firefox calculates as the max char height for the root frame on my system. Fixes servo#5660
Platforms may report scroll deltas either in chunks/lines/rows or pixels, depending on the platform API and device capabilities. If the platform reports a line/chunk-based delta then the application needs to convert the delta into a suitable number of pixels. This commit just hardcodes it to 57 as a starting point which matches the value that Firefox calculates as the max char height for the root frame on my system. Fixes servo#5660
…alton Use a faster scroll speed under X11 Platforms may report scroll deltas either in chunks/lines/rows or pixels, depending on the platform API and device capabilities. If the platform reports a line/chunk-based delta then the application needs to convert the delta into a suitable number of pixels. Apple's documentation for example states that the app should interpret the delta as a number of lines or rows to scroll, depending on the type of view. This commit just hardcodes it to 57 as a starting point which matches the value that Firefox calculates as the max char height for the root frame on my system. This depends on this Glutin PR: rust-windowing/glutin#483 Fixes #5660 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6373) <!-- Reviewable:end -->
Platforms may report scroll deltas either in chunks/lines/rows or pixels, depending on the platform API and device capabilities. If the platform reports a line/chunk-based delta then the application needs to convert the delta into a suitable number of pixels. This commit just hardcodes it to 57 as a starting point which matches the value that Firefox calculates as the max char height for the root frame on my system. Fixes servo#5660
…alton Use a faster scroll speed under X11 Platforms may report scroll deltas either in chunks/lines/rows or pixels, depending on the platform API and device capabilities. If the platform reports a line/chunk-based delta then the application needs to convert the delta into a suitable number of pixels. Apple's documentation for example states that the app should interpret the delta as a number of lines or rows to scroll, depending on the type of view. This commit just hardcodes it to 57 as a starting point which matches the value that Firefox calculates as the max char height for the root frame on my system. This depends on this Glutin PR: rust-windowing/glutin#483 Fixes #5660 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6373) <!-- Reviewable:end -->
Commit 9f3b308 made scrolling with the mouse wheel annoyingly slow. To be specific, this is not a performance problem but the scroll step size is too low.
I use Linux so this issue may be dependent on the OS.