Bug #2430
opentech tree scrolling error in gtk4
0%
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
Updated by Marko Lindqvist 9 days ago
- File 0079-gtk4-x-Fix-tech-tree-scrolling.patch 0079-gtk4-x-Fix-tech-tree-scrolling.patch added
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
- Priority changed from Low to Normal
- Target version set to 3.2.8
Original patch is fine for S3_2 and S3_3. Attached patch for main branch that also updates gtk4x-client.