MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setOnScrollCallback

Method setOnScrollCallback

valdi/src/valdi/runtime/Context/ViewNode.cpp:2922–2924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2920 if (scrollState.getMaintainScrollAnchor()) {
2921 float viewportH = _calculatedFrame.height;
2922
2923 // Find the child with scrollAnchorPosition != 0
2924 std::function<ViewNode*(ViewNode*, int)> findAnchor = [&](ViewNode* node, int depth) -> ViewNode* {
2925 if (depth <= 0)
2926 return nullptr;
2927 for (auto* child : *node) {

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36