-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Dropping to Script Editor is broken if scrolling past end of file is enabled #59822
Comments
I can confirm the regression in 3.5 beta 2, 3.5 beta 3 and latest |
I haven't tested but from reviewing the changelog I have a hunch that it might be because of #55355. CC @ConteZero |
Yes, the problem is in the following code:
But I don't know how to fix it. |
The easiest "fix" would be removing this part: if (row <= get_first_visible_line()) {
_scroll_lines_up();
} else if (row >= get_last_full_visible_line()) {
_scroll_lines_down();
} It would disable scrolling when dragging at the edges, but it's better than breaking the editor. From my experience, most dragging operations happen on a single screen. |
Fixed by #61980. |
Godot version
3.5 beta3
System information
Windows 10 x64
Issue description
When you enable
text_editor/cursor/scroll_past_end_of_file
in editor settings and try to drop a file into the script, dragging over the area under the script will cause scrolling down and makes the editor unusable:Does not happen on master.
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: