godotengine / godotengine/godot

GraphEdit: Improper minimap scaling when zooming

Open
#119,415 0 comments 0 reactions 0 assignees View on GitHub
bug topic:gui
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in Godot 4.6.1-stable & Godot 4.6.2-stable

### System information

Windows 10 - Godot v4.6.2-stable - Compatibility Renderer

### Issue description

When zooming in/out near the edge of the graph, the minimap applies incorrect scaling which results in the camera's rect to appear out of the bounding box of the minimap.

### Steps to reproduce

1. Instantiate a GraphEdit node
2. Pan camera to edge of GraphEdit
3. Zoom in, the camera rect appears to move outside of the minimap rect.

Image

### Minimal reproduction project (MRP)

[GraphEdit MRP.zip](https://github.com/user-attachments/files/27623667/GraphEdit.MRP.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached GraphEdit MRP and reproduce the issue by panning to the edge, then zooming in and out. Trace the GraphEdit minimap and camera-rect behavior; done means the camera rect remains within the minimap bounds during edge zooming and the regression is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, godot
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.