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