fabric都是通过监控滚轮事件,mouse:wheel,通过确定中心点,放大缩小,核心代码如下
this.zoomPoint = new fabric.Point(e.pointer.x, e.pointer.y); // 中心点
this.fabricObj.zoomToPoint(
fabric都是通过监控滚轮事件,mouse:wheel,通过确定中心点,放大缩小,核心代码如下
this.zoomPoint = new fabric.Point(e.pointer.x, e.pointer.y); // 中心点
this.fabricObj.zoomToPoint(