godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91k stars 21.17k forks source link

Godot scrolls the script editor annoyingly. #95629

Open Torguen opened 2 months ago

Torguen commented 2 months ago

Tested versions

v4.3.stable.official [77dcf97d8]

System information

w10 64

Issue description

Watch the video, every time I switch between the 2D editor and the script editor I have to reposition the scroll in the script editor. When I switch to the 2D editor and back to the script editor, Godot moved the scroll in the script editor and now I have to reposition the scroll in the script editor to have it the way I decide.

https://github.com/user-attachments/assets/7f09127d-0638-420e-8a0c-15fadf226f15

Steps to reproduce

watch the video

Minimal reproduction project (MRP)

...

AThousandShips commented 2 months ago

Can't replicate, it stays in the same position for me when switching, are there any further steps beyond just scrolling and switching tabs? (On Win11)

Torguen commented 2 months ago

It could be due to some editor option, I have changed several things. I have these two files in roaming -> godot folder

editor_settings-4.3.zip

AThousandShips commented 2 months ago

Try by changing the settings instead to pin down if it happens with some or others specifically

Torguen commented 2 months ago

This is the related option, if I deactivate it the problem does not occur. This option is not being taken into account and is causing the problem. I seem to remember that it also happens in 3.x

Captura

AThousandShips commented 2 months ago

Still can't confirm with that setting set to that, so something specific about your code that triggers this in that case

Torguen commented 2 months ago

If I share the script, can you try it?

AThousandShips commented 2 months ago

Sure!

Torguen commented 2 months ago

Bart.zip

Torguen commented 2 months ago

Distraction-free mode must be activated

AThousandShips commented 2 months ago

Can replicate with the specific case where the window is at the very bottom of the text, then it will move up slightly