MCPcopy Create free account
hub / github.com/ddnet/ddnet / ScrollRelativeDirect

Method ScrollRelativeDirect

src/game/client/ui_scrollregion.cpp:247–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void CScrollRegion::ScrollRelativeDirect(float ScrollAmount)
248{
249 m_RequestScrollY = std::clamp(m_ScrollY + ScrollAmount, 0.0f, m_ContentH - m_ClipRect.h);
250}
251
252void CScrollRegion::DoEdgeScrolling()
253{

Callers 1

UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected