MCPcopy Create free account
hub / github.com/TKazer/CS2_External / CalcScrollEdgeSnap

Function CalcScrollEdgeSnap

CS2_External/OS-ImGui/imgui/imgui.cpp:9807–9814  ·  view source on GitHub ↗

Helper to snap on edges when aiming at an item very close to the edge, So the difference between WindowPadding and ItemSpacing will be in the visible area after scrolling. When we refactor the scrolling API this may be configurable with a flag? Note that the effect for this won't be visible on X axis with default Style settings as WindowPadding.x == ItemSpacing.x by default.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 1

ImLerpFunction · 0.85

Tested by

no test coverage detected