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

Method notifyOnScroll

valdi/src/valdi/runtime/Context/ViewNodeScrollState.cpp:308–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void ViewNodeScrollState::notifyOnScroll(const Point& directionAgnosticContentOffset,
309 const Point& directionAgnosticUnclampedContentOffset,
310 const Point& directionAgnosticVelocity) const {
311 if (_onScrollCallback != nullptr) {
312 VALDI_TRACE("Valdi.notifyOnScroll")
313 submitScrollEvent(_onScrollCallback,
314 ValueFunctionFlagsAllowThrottling,
315 directionAgnosticContentOffset,
316 directionAgnosticUnclampedContentOffset,
317 directionAgnosticVelocity);
318 }
319}
320
321void ViewNodeScrollState::notifyOnDragStart(const Point& directionAgnosticContentOffset,
322 const Point& directionAgnosticUnclampedContentOffset,

Callers 1

handleOnScrollMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected