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

Method setOnScrollEndCallback

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

Source from the content-addressed store, hash-verified

2924 std::function<ViewNode*(ViewNode*, int)> findAnchor = [&](ViewNode* node, int depth) -> ViewNode* {
2925 if (depth <= 0)
2926 return nullptr;
2927 for (auto* child : *node) {
2928 if (child->getScrollAnchorPosition() != ScrollAnchorPositionNone)
2929 return child;
2930 auto* found = findAnchor(child, depth - 1);
2931 if (found)

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36