triggerTouchAction method
Implementation
void triggerTouchAction(Offset delta, PointerDeviceKind kind) {
final double scrollDelta;
if (kind == PointerDeviceKind.trackpad && kIsWeb) {
if (isVertical) {
scrollDelta = delta.dy;
} else {
scrollDelta = delta.dx;
}
} else {
if (isVertical) {
scrollDelta = -delta.dy;
} else {
scrollDelta = -delta.dx;
}
}
if (scrollDelta.toInt() != 0) {
handleTouchScroll(scrollDelta);
silkyScrollMousePointerManager.silkyScrollWebManager
.blockOverscrollBehaviorXHtml();
}
if (scrollCallback != null) {
scrollCallback!(scrollDelta);
}
}