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

Method isAccessibilityFocusable

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

Source from the content-addressed store, hash-verified

3410}
3411
3412int ViewNode::getScrollAnchorPosition() const {
3413 return _scrollAnchorPosition;
3414}
3415
3416void ViewNode::setStickyPosition(int position) {
3417 int previous = _stickyPosition;
3418 _stickyPosition = position;
3419 // When transitioning out of sticky mode, release our native-priority hold on
3420 // translationY so JS writes (fade path, tests, or a later consumer) can regain
3421 // control. Without this, the header freezes at its last native-set displacement.
3422 if (previous == StickyPositionTop && position != StickyPositionTop && _viewNodeTree != nullptr) {
3423 _viewNodeTree->withLock([&]() {
3424 auto& scope = _viewNodeTree->getCurrentViewTransactionScope();
3425 getAttributesApplier().removeAttribute(

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64