https://bugs.documentfoundation.org/show_bug.cgi?id=143209

--- Comment #8 from [email protected] ---
I dug in here and figured out the problem: `lcl_HandleScrollHelper` is using
`o3tl::saturating_cast` to handle scroll deltas, which results in
positive/negative asymmetry. The asymmetry can be fixed by simply adding 0.5:

`nNewPos = o3tl::saturating_cast<tools::Long>(fVal + 0.5);`

in `lcl_HandleScrollHelper` in `vcl/source/window/window2.cxx`.

But looking at this code, it really should be properly handling sub-cell
scrolls. I've written a patch that stores partial scroll offsets in
`WindowImpl` and uses them in `Window::HandleScrollCommand`; this cleanly fixes
this bug and improves smoothness of scrolling in general for touchpads.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to