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

Function makeScrollEvent

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

Source from the content-addressed store, hash-verified

348 velocity);
349 }
350}
351
352static Value makeScrollEvent(const Point& directionAgnosticContentOffset,
353 const Point& directionAgnosticUnclampedContentOffset,
354 const Point& directionAgnosticVelocity) {
355 return TouchEvents::makeScrollEvent(static_cast<double>(directionAgnosticContentOffset.x),
356 static_cast<double>(directionAgnosticContentOffset.y),
357 static_cast<double>(directionAgnosticUnclampedContentOffset.x),
358 static_cast<double>(directionAgnosticUnclampedContentOffset.y),
359 static_cast<double>(directionAgnosticVelocity.x),
360 static_cast<double>(directionAgnosticVelocity.y));
361}
362

Callers 4

submitScrollEventMethod · 0.85
submitScrollEndEventMethod · 0.85
notifyOnDragEndMethod · 0.85
notifyOnDragEndingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected