From 5cc68fef50d69c4a0c0de6e28eb5bc67131a2a59 Mon Sep 17 00:00:00 2001 From: duanchuanxu Date: Wed, 8 May 2019 14:40:41 +0800 Subject: [PATCH] fix wheel passive --- components/upload/Preview.js | 4 ++-- components/upload/UploadAvatar.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/upload/Preview.js b/components/upload/Preview.js index ba8897bfe..b92cde3ec 100644 --- a/components/upload/Preview.js +++ b/components/upload/Preview.js @@ -70,8 +70,8 @@ export default class Preview extends Component { return (
diff --git a/components/upload/UploadAvatar.js b/components/upload/UploadAvatar.js index 1015e5508..59de6e8fe 100644 --- a/components/upload/UploadAvatar.js +++ b/components/upload/UploadAvatar.js @@ -198,7 +198,7 @@ class UploadAvatar extends Upload { } zoom(e) { // 缩放canvas - e.preventDefault() + // e.preventDefault() const wheelDelta = e.wheelDelta || e.deltaY/120 let scale = this.scale + wheelDelta