GUI: some inertial scrolling fixes
when moving/resizing
This commit is contained in:
parent
9d02afe0eb
commit
fe4f15fff2
2
extern/imgui_patched/imgui.cpp
vendored
2
extern/imgui_patched/imgui.cpp
vendored
|
@ -3970,6 +3970,7 @@ void ImGui::UpdateMouseMovingWindowNewFrame()
|
||||||
{
|
{
|
||||||
MarkIniSettingsDirty(moving_window);
|
MarkIniSettingsDirty(moving_window);
|
||||||
SetWindowPos(moving_window, pos, ImGuiCond_Always);
|
SetWindowPos(moving_window, pos, ImGuiCond_Always);
|
||||||
|
g.InertialScrollInhibited=true;
|
||||||
if (moving_window->ViewportOwned) // Synchronize viewport immediately because some overlays may relies on clipping rectangle before we Begin() into the window.
|
if (moving_window->ViewportOwned) // Synchronize viewport immediately because some overlays may relies on clipping rectangle before we Begin() into the window.
|
||||||
{
|
{
|
||||||
moving_window->Viewport->Pos = pos;
|
moving_window->Viewport->Pos = pos;
|
||||||
|
@ -6025,6 +6026,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s
|
||||||
if (size_target.x != FLT_MAX)
|
if (size_target.x != FLT_MAX)
|
||||||
{
|
{
|
||||||
window->SizeFull = size_target;
|
window->SizeFull = size_target;
|
||||||
|
g.InertialScrollInhibited=true;
|
||||||
MarkIniSettingsDirty(window);
|
MarkIniSettingsDirty(window);
|
||||||
}
|
}
|
||||||
if (pos_target.x != FLT_MAX)
|
if (pos_target.x != FLT_MAX)
|
||||||
|
|
Loading…
Reference in a new issue