diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-06-12 21:06:42 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-06-12 21:33:09 +0200 |
commit | 2f448c976889fe60aba8557b5aa4aa0a0d939281 (patch) | |
tree | fc3c9b01be6fb08d4ad8d9f1444d6730273d21d1 /src/error.c | |
parent | aaa1d51a4c85fcc627e88ef7cf5292d9c5f5f840 (diff) | |
download | sciteco-2f448c976889fe60aba8557b5aa4aa0a0d939281.tar.gz |
GTK: fixed scrolling on systems that only support smooth scrolling
* Apparently, we cannot disable smooth scrolling on a per-application basis,
so I have to handle both discrete and smooth scrolling events.
* Since SciTECO's scroll API (-EJ) is based on discrete scrolling, we now
emulate discrete scroll events by accumulating the delta_y of smooth scroll events.
The threshold value of 12 is chosen arbitrarily, but based on an example in
the Gtk documentation.
Diffstat (limited to 'src/error.c')
0 files changed, 0 insertions, 0 deletions