Using the scrollbar arrows (steppers) results in very slow scrolling. It moves about one line per second.
What version of Geany are you using? Which operating system? If on Linux, which desktop environment and Wayland or X?
Does it happen on every file or only big files (e.g. with many lines) or with a certain file type?
And, possibly, is it some big file that contains just a single line and you have line wrapping enabled?
* geany 1.38 (built on 2021-10-14 with GTK 3.24.30, GLib 2.68.4) * Linux Mint 21.1 Cinnamon on laptop and desktop * Happens with all files, regardless of size or type. * Also, clicking the arrow requires 3 clicks before there's any movement. That is, it's 3 clicks to move one line. * Can I post a video screen capture in webm (or other) format? * Someone on another forum kindly looked into it and referenced this bit of code as the problem:
if (gtk_adjustment_get_upper(adjustmenth) != horizEndPreferred ||
gtk_adjustment_get_page_size(adjustmenth) != pageWidth || gtk_adjustment_get_page_increment(adjustmenth) != pageIncrement || gtk_adjustment_get_step_increment(adjustmenth) != charWidth) { gtk_adjustment_set_upper(adjustmenth, horizEndPreferred); gtk_adjustment_set_page_size(adjustmenth, pageWidth); gtk_adjustment_set_page_increment(adjustmenth, pageIncrement); gtk_adjustment_set_step_increment(adjustmenth, charWidth); #if !GTK_CHECK_VERSION(3,18,0) gtk_adjustment_changed(GTK_ADJUSTMENT(adjustmenth)); #endif gtk_adjustment_set_value(GTK_ADJUSTMENT(adjustmenth), xOffset); modified = true; }
- geany 1.38 (built on 2021-10-14 with GTK 3.24.30, GLib 2.68.4)
- Linux Mint 21.1 Cinnamon on laptop and desktop
Both are pretty dated, I'd suggest you try to upgrade Mint so you'll get also a newer Geany version.
- Also, clicking the arrow requires 3 clicks before there's any movement. That is, it's 3 clicks to move one line.
Does this happen only on the scrollbar of the editing widget or also on other widgets like the symbol list or plugin manager dialog?
- Can I post a video screen capture in webm (or other) format?
Sure why not.
- Someone on another forum kindly looked into it and referenced this bit of code as the problem:
if (gtk_adjustment_get_upper(adjustmenth) != horizEndPreferred || gtk_adjustment_get_page_size(adjustmenth) != ...
This is Scintilla code and so it might be not caused by Geany itself. Though the behavior could also be triggered by a combination of the code above and a specific GTK theme.
I suggest the following things to ideally solve or at least narrow down the problem: - upgrade Linux Mint and Geany - if the problems persists or this is not possible: - try "Scite" - this is the reference implementation of the Scintilla library we also use in Geany, maybe it exposes the same behavior - try another GTK theme to see if it makes any difference
Won't it be a problem no matter what?...Since the following line is in the latest code?
`gtk_adjustment_set_step_increment(adjustmenth, charWidth);`
Oh, I think I finally understand what you are talking about. You mean when you press the "up arrow" at the top or bottom of the scrollbar like the guy here
<img width="91" alt="Screenshot 2025-01-04 at 19 51 22" src="https://github.com/user-attachments/assets/f74a19d5-1c43-4f95-afa3-b66b39135dc1" />
and keep it pressed, the scrolling events are only generated once per second, right? It's indeed a little too slow (though I personally use a mouse wheel instead anyway).
I'd say scrolling by 1 line may be intentional so you can get the view exactly to the line you want, it just could be a little faster.
Yes. Quite slow. The xed text editor is faster. The geany scroll is too slow to be of any use. And one click of the arrow does nothing...It takes 3 or 4 clicks of the arrow to move one line.
It takes 3 or 4 clicks of the arrow to move one line.
This is really weird though - I don't see it with the current version from git. If you are able to compile Geany from sources, you could try the current version.
It takes 3 or 4 clicks of the arrow to move one line.
This is really weird though - I don't see it with the current version from git. If you are able to compile Geany from sources, you could try the current version.
I could compile from sources if someone could give me simple instructions. I'm a developer, but quite new to Linux. Also, isn't installing the latest version the same as compiling from sources? Has the code changed that much from the last release?
Something like this should work: 1. `sudo apt install build-essential` (install basic development tools) 2. `sudo apt build-dep geany` (should install all dependencies needed for building Geany). Before running this, you'll have to add the repository for "source" versions of packages - I think this is accessible from some update manager, I don't remember where exactly in mint this is. 3. `git clone https://github.com/geany/geany.git%60 (gets the Geany repo) 4. `cd geany` 5. `./autogen.sh --disable-html-docs && make -j 9 && sudo make install` (build and install Geany)
the step increment was set as the width of a character:
if (gtk_adjustment_get_upper(adjustmenth) != horizEndPreferred || gtk_adjustment_get_page_size(adjustmenth) != pageWidth || ...
This `adjustmenth` is the horizontal scroll adjustment, not the vertical which is `adjustmentv` set just above. The arrow step size for `adjustmentv` is not changed here with `gtk_adjustment_set_step_increment` and is left at its original 1.0.
github-comments@lists.geany.org