| 319 | } |
| 320 | |
| 321 | void 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 | |