GUI: long hold?

This commit is contained in:
tildearrow 2022-12-02 04:13:26 -05:00
parent 018d8379e6
commit dc7aec2dc1
5 changed files with 42 additions and 1 deletions

View file

@ -7552,6 +7552,16 @@ void ImGui::EndDisabled()
g.Style.Alpha = g.DisabledAlphaBackup; //PopStyleVar();
}
// IsInertialScroll()
bool ImGui::IsInertialScroll()
{
ImGuiWindow* window = GetCurrentWindow();
if (window==NULL) return false;
return window->InertialScroll;
}
// InhibitInertialScroll()
void ImGui::InhibitInertialScroll()

View file

@ -839,6 +839,7 @@ namespace ImGui
IMGUI_API void EndDisabled();
// Inertial scroll
IMGUI_API bool IsInertialScroll();
IMGUI_API void InhibitInertialScroll();
// Clipping