cvfosammmm / Setzer

LaTeX editor written in Python with Gtk
https://www.cvfosammmm.org/setzer/
Other
388 stars 34 forks source link

Gtk4 - Slow Scrolling #353

Closed cvfosammmm closed 1 year ago

cvfosammmm commented 1 year ago

There is a problem with EventControllerScroll: it's much too slow, and there doesn't seem to be a way to speed it up, because the scrolling deltas are very coarse values. So multiplying with a bigger value will make the scrolling not smooth.

Does anybody know of a way to get around that?

cvfosammmm commented 1 year ago

I found a hack around this problem: multiply the delta with a Sigmoid function: https://en.wikipedia.org/wiki/Sigmoid_function

This still doesn't feel as nice as GTK3 though.