From ab8bf471b557aa7d1871dafda66918c8b236b32e Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Sat, 19 Feb 2022 07:20:38 -0500 Subject: [PATCH] feat: disable scrolling container windows --- ChatTwo/Ui/ChatLog.cs | 2 +- ChatTwo/Ui/Settings.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ChatTwo/Ui/ChatLog.cs b/ChatTwo/Ui/ChatLog.cs index 239eb27..d7e95bf 100755 --- a/ChatTwo/Ui/ChatLog.cs +++ b/ChatTwo/Ui/ChatLog.cs @@ -355,7 +355,7 @@ internal sealed class ChatLog : IUiComponent { return false; } - var flags = ImGuiWindowFlags.None; + var flags = ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse; if (!this.Ui.Plugin.Config.CanMove) { flags |= ImGuiWindowFlags.NoMove; } diff --git a/ChatTwo/Ui/Settings.cs b/ChatTwo/Ui/Settings.cs index ad86210..2251545 100755 --- a/ChatTwo/Ui/Settings.cs +++ b/ChatTwo/Ui/Settings.cs @@ -63,7 +63,7 @@ internal sealed class Settings : IUiComponent { ImGui.SetNextWindowSize(new Vector2(475, 600) * ImGuiHelpers.GlobalScale, ImGuiCond.FirstUseEver); var name = string.Format(Language.Settings_Title, this.Ui.Plugin.Name); - if (!ImGui.Begin($"{name}###chat2-settings", ref this.Ui.SettingsVisible)) { + if (!ImGui.Begin($"{name}###chat2-settings", ref this.Ui.SettingsVisible, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse)) { ImGui.End(); return; }