| 276 | } |
| 277 | |
| 278 | void ViewNodeScrollState::submitScrollEvent(const Ref<ValueFunction>& callback, |
| 279 | ValueFunctionFlags callFlags, |
| 280 | const Point& directionAgnosticContentOffset, |
| 281 | const Point& directionAgnosticUnclampedContentOffset, |
| 282 | const Point& directionAgnosticVelocity) { |
| 283 | auto touchEvent = TouchEvents::makeScrollEvent(static_cast<double>(directionAgnosticContentOffset.x), |
| 284 | static_cast<double>(directionAgnosticContentOffset.y), |
| 285 | static_cast<double>(directionAgnosticUnclampedContentOffset.x), |
| 286 | static_cast<double>(directionAgnosticUnclampedContentOffset.y), |
| 287 | static_cast<double>(directionAgnosticVelocity.x), |
| 288 | static_cast<double>(directionAgnosticVelocity.y)); |
| 289 | |
| 290 | (*callback)(callFlags, {std::move(touchEvent)}); |
| 291 | } |
| 292 | |
| 293 | void ViewNodeScrollState::submitScrollEndEvent(const Ref<ValueFunction>& callback, |
| 294 | ValueFunctionFlags callFlags, |
nothing calls this directly
no test coverage detected