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

Method notifyOnDragStart

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

Source from the content-addressed store, hash-verified

319}
320
321void ViewNodeScrollState::notifyOnDragStart(const Point& directionAgnosticContentOffset,
322 const Point& directionAgnosticUnclampedContentOffset,
323 const Point& directionAgnosticVelocity) {
324 _scrolling = true;
325
326 if (_onDragStartCallback != nullptr) {
327 VALDI_TRACE("Valdi.notifyOnDragStart")
328 // BoundedMainThreadSync: a SyncWithMainThread handler must not hold the main thread
329 // beyond kInputSyncCallDeadline (COMPOSER-5961); no caller reads the result.
330 submitScrollEvent(_onDragStartCallback,
331 ValueFunctionFlagsBoundedMainThreadSync,
332 directionAgnosticContentOffset,
333 directionAgnosticUnclampedContentOffset,
334 directionAgnosticVelocity);
335 }
336}
337

Callers 1

onDragStartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected