onDoubleTapUp method
Implementation
@override
void onDoubleTapUp(TapUpDetails details) {
widget.controller.stopDeceleration();
if (widget.controller.painter!.doubleTapToZoomEnabled &&
widget.controller.painter!.getData()!.getEntryCount() > 0) {
MPPointF trans =
_getTrans(details.localPosition.dx, details.localPosition.dy);
widget.controller.painter?.zoom(
widget.controller.painter!.scaleXEnabled ? 1.2 : 1,
widget.controller.painter!.scaleYEnabled ? 1.2 : 1,
trans.x,
trans.y);
setStateIfNotDispose();
MPPointF.recycleInstance(trans);
}
if (widget.controller.touchEventListener != null) {
var point = _getTouchValue(
widget.controller.touchEventListener!.valueType(),
details.globalPosition.dx,
details.globalPosition.dy,
details.localPosition.dx,
details.localPosition.dy);
widget.controller.touchEventListener?.onDoubleTapUp(point.x, point.y);
}
}