Project

General

Profile

Actions

Bug #2430

open

tech tree scrolling error in gtk4

Added by Andrew McGuinness 11 days ago. Updated 9 days ago.

Status:
In Review
Priority:
Normal
Category:
gtk4-client
Target version:
Start date:
10/28/2026
Due date:
% Done:

0%

Estimated time:

Description

In the GTK4 client, if you open the tech tree diagram / research report, then scroll it to the right, then switch back to another view, then switch back to the research report, your scroll position has moved, and the right-click doesn't open the tech under the mouse cursor. Also you cannot see the left edge of the tech tree even when you scroll all the way left.

It looks like the gtk_viewport handles all the scrolling and positioning of the diagram, but there is leftover code that modifies the underlying diagram based on the scrollbar position, so when the redraw happens the offset is effectively doubled.

The attached works for me.


Files

techrptfix.patch (1.31 KB) techrptfix.patch Andrew McGuinness, 10/28/2026 04:27 PM
0079-gtk4-x-Fix-tech-tree-scrolling.patch (3.06 KB) 0079-gtk4-x-Fix-tech-tree-scrolling.patch main Marko Lindqvist, 10/31/2026 01:33 AM

Related issues 1 (1 open — 0 closed)

Blocks Task #2401: Release 3.2.8New10/21/2026

Actions
Actions

Also available in: Atom PDF