onScroll method

  1. @override
void onScroll(
  1. PointerScrollInfo info
)

Implementation

@override
void onScroll(PointerScrollInfo info) {
  var zoomCenter = info.eventPosition.widget;
  var zoomDelta = info.scrollDelta.global.y.sign * zoomPerScrollUnit;
  onZoom(zoomCenter: zoomCenter, zoomDelta: zoomDelta);
}