| 359 | static_cast<double>(directionAgnosticVelocity.x), |
| 360 | static_cast<double>(directionAgnosticVelocity.y)); |
| 361 | } |
| 362 | |
| 363 | void ViewNodeScrollState::notifyOnDragEnd(const Point& directionAgnosticContentOffset, |
| 364 | const Point& directionAgnosticUnclampedContentOffset, |
| 365 | const Point& directionAgnosticVelocity) const { |
| 366 | if (_onDragEndCallback == nullptr) { |
| 367 | return; |
| 368 | } |
| 369 | |
| 370 | VALDI_TRACE("Valdi.notifyOnDragEnd"); |
| 371 | auto scrollEvent = makeScrollEvent( |
| 372 | directionAgnosticContentOffset, directionAgnosticUnclampedContentOffset, directionAgnosticVelocity); |
| 373 | _onDragEndCallback->call(ValueFunctionFlagsBoundedMainThreadSync, &scrollEvent, 1); |
| 374 | } |
| 375 |
no test coverage detected