Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RichTextLabel + ui_down scrolling too far #94003

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

KernRat
Copy link
Contributor

@KernRat KernRat commented Jul 6, 2024

Issue:
Using the down key (ui_down) made rich text labels such as the in-editor documentation scroll way too far down.
The scroll amount effectively doubled every time.

I did not find an open issue for this, but this is an easy fix.

Godot-Versions:
Bug introduced in #90988 / 30356a4
First release with the bug: 4.3-dev6

Cause of issue:
A recent commit replaced an absolute scroll values with relative ones, but in the case of ui_down did not remove the now superfluous current value.

How to check this PR:
Use the down key / ui_down (not the mouse wheel) in the in-editor documentation. Without this PR the scroll amount doubles, i.e. jumping from the middle to the end.
With this PR the documentation scrolls as expected.

@KernRat KernRat requested a review from a team as a code owner July 6, 2024 15:56
@AThousandShips AThousandShips added this to the 4.4 milestone Jul 6, 2024
@AThousandShips AThousandShips changed the title Fixed RichTextLabel + ui_down scrolling too far Fix RichTextLabel + ui_down scrolling too far Jul 7, 2024
@KoBeWi KoBeWi modified the milestones: 4.4, 4.3 Jul 10, 2024
@akien-mga akien-mga changed the title Fix RichTextLabel + ui_down scrolling too far Fix RichTextLabel + ui_down scrolling too far Jul 10, 2024
@akien-mga akien-mga merged commit 013ee6a into godotengine:master Jul 10, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants