Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
247
void CScrollRegion::ScrollRelativeDirect(float ScrollAmount)
248
{
249
m_RequestScrollY = std::clamp(m_ScrollY + ScrollAmount, 0.0f, m_ContentH - m_ClipRect.h);
250
}
251
252
void CScrollRegion::DoEdgeScrolling()
253
{
Callers
1
Update
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected