| 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) { |