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 Scroll bug when chat is opened (the same issue was for menu) #21405

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ public override void Draw()
if (Game.Settings.Game.ViewportEdgeScroll && Game.Renderer.WindowHasInputFocus)
edgeDirections = CheckForDirections();

if (Ui.KeyboardFocusWidget != null)
keyboardDirections = ScrollDirection.None;
PunkPun marked this conversation as resolved.
Show resolved Hide resolved

if (keyboardDirections != ScrollDirection.None || edgeDirections != ScrollDirection.None)
{
var scroll = float2.Zero;
Expand Down