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

Method isAccessibilityLeaf

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

Source from the content-addressed store, hash-verified

3445int ViewNode::getStickyPosition() const {
3446 return _stickyPosition;
3447}
3448
3449void ViewNode::setNativeStickyEnabled(bool enabled) {
3450 auto& scrollState = getOrCreateScrollState();
3451 bool previous = scrollState.getNativeStickyEnabled();
3452 scrollState.setNativeStickyEnabled(enabled);
3453
3454 // Runtime toggle false -> true: build the sticky measurement cache now so the
3455 // next scroll frame doesn't read default 0.0f values and misposition headers.

Callers 1

walkViewNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected