aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/view.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-06-12 21:06:42 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-06-12 21:33:09 +0200
commit2f448c976889fe60aba8557b5aa4aa0a0d939281 (patch)
treefc3c9b01be6fb08d4ad8d9f1444d6730273d21d1 /src/view.c
parentaaa1d51a4c85fcc627e88ef7cf5292d9c5f5f840 (diff)
downloadsciteco-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/view.c')
0 files changed, 0 insertions, 0 deletions