Hi all, I am using Geany v1.37.1 in Win10 x64. Currently vertical scrolling is super fast. I need to reduce this. Please help. Thanks in advance.
Geany does not control scrolling speed, thats set by Windows.
Thanks for the reply. But i feel this super speed only in Geany. VS Code & ST3 is okay.
Hello, I'm having the same experience as @vinodvinu. Using Windows 10 x64, Geany 1.37.1, altering the windows scroll speed (through the Settings app) has a notable effect on other applications (browser, powershell ui, outlook, etc.), but Geany always scrolls at an unaffected (fast!) speed. This does feel like a bug to me.
@elextr I have experienced this super fast scrolling speed only with laptop's touch pad. If I use a mouse, everything is perfect. My laptop's touchpad is perfectly working with VS Code & Sublime Text. So Problem is inside Geany.
Hi @elextr, is there any news here? (Some time has passed - perhaps there is some fix I can configure in a newer version of geany?)
Most of the regular contributors to Geany do not use Windows regularly, and none of them have confirmed they have seen the issue.
perhaps there is some fix I can configure in a newer version of geany?
AFAICT there is no fix specific to this issue, but you can try 1.38.
Same issue here. Scroll speed in Geany only is very very fast. If I open the same file in a different editor the scroll speed is normal. If I go to web browser scroll speed is normal. Only a Geany / Windows issue and does not happen in Linux. Just the slightest scroll up on the trackpad will scroll like 5 lines. In another text editor even if I dramatically scroll up it doesnt move as fast as in Geany with much much less effort.
@clark713 its not beyond belief :-). Since GTK sits between Geany and Windows its entirely possible it ignores any scroll speed setting. Since Windows is not GTK's primary target, its entirely believable that the quality of the Windows port is not as good as the Linux version (which _is_ its primary target).
As I noted above, although people seem to use Geany on Windows, nobody who does so seems willing to contribute effort to supporting it, and none or the current core contributors actually use Geany on Windows, even the guy who makes the Windows releases only does so because he is a very nice guy, not because he gets any use out of it.
So until someone volunteers to support Geany on Windows its unlikely that problems like this can be fixed I'm afraid.
Many thanks for the detailed reply and all the information it is very appreciated. I will try to dig into this more and see if I can figure anything out, although I am very amateur in this regard. I mainly use Linux but on my Windows machine installed Geany just for consistency. Thanks again.
Thanks.
I'm not sure what the state of building Geany on Windows is, there have been some work lately which is intended to make it easier to build for Windows hosted on both Linux and Windows (through the magic of docker) and then to also use that in the Github CI to produce a windows installer (see #3315) so PRs can be tested more easily, but its not complete AFAIK, both for the CI or standalone. So hopefully it will get easier "soon".
Noting something in case it helps track down the issue.
Geany > Preferences > Various Geany > Preferences > Keybindings
Those pages has enough content to scroll. Scrolling there is at the normal speed. So the issue is not "fast scrolling everywhere in Geany" just scrolling in the editor.
The scroll bars in the editor are generated by Scintilla, the editing widget, but those in the items listed above are generated by GTK, so maybe GTK is compensating itself for the overfast scroll, but isn't compensating when it sends the messages to Scintilla?
I can add that scrolling speed is also very fast on macOS. So, it is an issue there.
@torstenberg maybe report on https://github.com/geany/geany-osx
Just installed Emacs and it has the same "faster than light" scroll speed seen in Geany. Noting this in case it helps the process of elimination somehow.
@clark713 that suggests its GTK since (IIUC) Emacs uses GTK for its GUI.
If someone has dual boot hardware and has the problem in Windows can they boot into Linux and see if it works correctly.
Also its not entirely clear to me if GTK3 supports hi-res wheels, so if you are using one of those (or a touchpad that emulates one) then that might also be the problem. [This](https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3839) suggests only Wayland GTK4 supports it (as of a couple of months ago) not X11 or Windows or Macos.
Mouse wheel scrolling in Scintilla for GTK implements scrolling 'intensity' which appears to accelerate scrolling to make it easier to scroll swiftly to distant areas. This is very old code that was originally just for Win32 and may not work well with high resolution devices like touchpads emulating scroll wheels. https://sourceforge.net/p/scintilla/code/ci/264b3b959f9a8a8491528ee6ea0d1ff8...
@nyamatongwe thanks, interesting, yes multiplying the scroll rate with high res scrolling might indeed increase the scroll speed even more than than simply getting more hi-res events.
So needs someone who can build Geany for Windows to build with these lines (the else clause at lines 2006 to 2019 of current Geany Git ScintillaGTK.cxx) commented out so it can be tested to see if it has a material difference on hi-res devices or if they are still unusable.
I built Geany with the suggested changes and it completely breaks scrolling completely :(. I can scroll neither with mouse wheel nor with trackpoint (didn't try touchpad).
I guess we need a more sophiscated guess what to change. I can test but I can't spend time fixing it.
I can scroll neither with mouse wheel nor with trackpoint (didn't try touchpad).
Ahh, ok, needs to set `cLineScroll` to something, maybe remove the #if too, so the apple code is used for all platforms.
@eht16 I'm guessing you don't have a high-res device since you havn't complained about supersonic scrolling :-) so if above makes it work for normal devices, can you post the binary (and instructions) somewhere so someone with a hi-res device can try it?
I can scroll neither with mouse wheel nor with trackpoint (didn't try touchpad).
Ahh, ok, needs to set `cLineScroll` to something, maybe remove the #if too, so the apple code is used for all platforms.
Done: only the macOS code path is active.
@Gershy @clark713 @kcvinker here is a build with adjusted scrolling mechanism which might be better: https://download.geany.org/snapshots/geany-1.39issue2678_setup.exe https://download.geany.org/snapshots/geany-plugins-1.39issue2678_setup.exe
NB: the installers contain the current GIT master code and so the new version will move some settings of your Geany configuration file into a new session.conf. You should not notice this but in case you want to switch back to the old version, everything stored in the session.conf will be ignored by the old version. Maybe just make a backup of your current configuration (should be in C:\Users<username>\AppData\Roaming\geany).
@eht16 I'm guessing you don't have a high-res device since you havn't complained about supersonic scrolling :-) so if above makes it work for normal devices, can you post the binary (and instructions) somewhere so someone with a hi-res device can try it?
Yes, I don't have a high-res device but I think I noticed fast scrolling speed as well. I'm running Windows in a VM and using it via RDP and mostly use the a ThinkPad's trackpoint with middle mouse button to scroll. I guess this is a very uncommon combination and so the following is not representative: with the above changes (using the macOS cod path on Windows), scrolling works nicer for me than before.
@eht16 Many thanks for this and for your continued efforts. The scrolling is less warp speed now. I would say this is an improvement vs before. However it seems to be scrolling by 13 lines at a time. If I start at line 1 the first scroll down goes to line 13, then 26, 39, etc which is still a pretty big jump. My resolution only shows 33 lines per screen so after 3 careful "down scrolls" I'm off the page.
@clark713 The patched code uses the `linesPerScroll` value (or 4 if thats 0), and `linesPerScroll` is set from the windows system parameter [here](https://github.com/geany/geany/blob/5d4e7cfd5b12647b4cab9bda7278abd7f63e9c2f...) so maybe look at what that parameter is set to in Windows (`Settings->Bluetooth & devices->Mouse->Scrolling->Lines to scroll at a time` default 3 on this Windows 11 tablet)
Hi @elextr I really appreciate the attention being dedicated to this issue! I'm trying out Geany 1.39 and I would say that the scrolling is an improvement from 1.38, but Geany 1.39 overall feels sluggish.
I specifically notice: - About a ~150ms delay between performing a scroll and the scroll occurring - Running simultaneous instances of 1.38 and 1.39 makes it very apparent that switching between different code tabs is much more sluggish in 1.39 (the sluggishness is still there with a 1.39 instance running alone)
I'm not sure if other users are having this experience. I wonder if this could be due to other changes present in 1.39?
@Gershy please raise those as a separate issue, this is about overly fast scrolling.
I just found this thread. Thank you so much @eht16 for your executables. While I use Geany on Kubuntu as my main development IDE, I've recently had to do some extra testing on Windows 11. The ultra-fast scrolling speed made Geany unusable so I had been going back to vim (yes, I'm a dinosaur) as my mainstay. I've now installed the updates and they work a charm! And to everyone else who contributed to this discussion - a heartfelt thanks!
@eht16 Thank you for the updates. Sorry for the delayed reply. I have tested version 1.39 in Windows 10 and it's perfect now. No extra speed in mouse scrolling.
Closed #2768 as completed.
While there are some binaries linked on this issue, I can't find a patch or recent code change to integrate upstream.
@nyamatongwe the intention was to simply remove the code you pointed at by removing the #if [here](https://github.com/geany/geany/blob/607fcec1fa5aff005090fbda17280976dcee68c8...) and the else clause so it uses what is currently apple only code on all platforms.
Now we know it works on windows probably @eht16 should make a PR (so we can be sure thats exactly what he did, and to test on other platforms) then that can be upstreamed.
Reopened #2768.
I did my best to create https://sourceforge.net/p/scintilla/bugs/2375/, @elextr and @nyamatongwe.
The patch was merged in Scintilla so we can close this once the next Scintilla release is integrated in Geany.
I've downloaded the latest geany 2.0, which came out 10/2023, but the scroll speed is still too fast on touchpad. Has it not been integrated or is there a feature in preferences I need to change?
github-comments@lists.geany.org