askbot-dragon 1.3.66 → 1.3.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.3.66",
3
+ "version": "1.3.67",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -866,7 +866,7 @@ export default {
866
866
  x: events2.pageX,
867
867
  y: events2.pageY
868
868
  }
869
- ) /
869
+ )
870
870
  that.getDistance(
871
871
  {
872
872
  x: that.displacement.pageX,
@@ -880,8 +880,8 @@ export default {
880
880
  // 应用在元素上的缩放比例
881
881
  let newScale = that.displacement.originScale * zoom;
882
882
  // 最大缩放比例限制
883
- if (newScale > 1) {
884
- newScale = 1;
883
+ if (newScale > 2) {
884
+ newScale = 2;
885
885
  }
886
886
  // 记住使用的缩放值
887
887
  that.displacement.scale = newScale;
@@ -891,7 +891,7 @@ export default {
891
891
  // 设置旋转元素的基点位置
892
892
  matrix_box.style.transformOrigin = "0px 0px 0px";
893
893
  }
894
- });
894
+ },{ passive: false });
895
895
  });
896
896
  },
897
897
  getDistance(start, stop) {