Hi Siemen,

there is such a place, but it is not as easy as it seems. First, the widget
has to accept per-pixel position of the top of the view, which is often
something you want to avoid because it is fairly complex. Then you need to
ensure that the scrolling can be done per pixel; whereas it is often done
with a stepping in the scrollbar, because the ability to scroll by one line
is essential. And last, you need to play with transformations, because the
scrollbar is only giving a number between 0.0 and 1.0, not a line number
nor a pixel position.

And more than last: per pixel scrolling is slow, so you need to look into
having variable speed scrolling, with an ease-in, ease-out behavior to have
proper feedback.

Regards,

Thierry


2017-01-13 11:41 GMT+01:00 Siemen Baader <siemenbaa...@gmail.com>:

> There must be a place that defines that scroll should happen by a line
> height, rather than continuously... Does anyone know where to look?
>
> -- Siemen
>
>

Reply via email to