From e0151ab23a64b3f4a6c40c2f6c69394330ad83c9 Mon Sep 17 00:00:00 2001 From: zhaoliang Date: Fri, 11 Mar 2022 10:14:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E9=BC=A0=E6=A0=87?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/vue-drag-resize.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/component/vue-drag-resize.js b/src/component/vue-drag-resize.js index 15319b9..129bcf4 100644 --- a/src/component/vue-drag-resize.js +++ b/src/component/vue-drag-resize.js @@ -382,10 +382,10 @@ export default { this.$emit('dragging', this.rect); }, - bodyUp() { + bodyUp(ev) { this.bodyDrag = false; - this.$emit('dragging', this.rect); - this.$emit('dragstop', this.rect); + this.$emit('dragging', this.rect, ev); + this.$emit('dragstop', this.rect, ev); this.dimensionsBeforeMove = { pointerX: 0, pointerY: 0, x: 0, y: 0, w: 0, h: 0 }; @@ -513,7 +513,7 @@ export default { this.$emit('resizing', this.rect); }, - stickUp() { + stickUp(ev) { this.stickDrag = false; this.dimensionsBeforeMove = { pointerX: 0, @@ -530,8 +530,8 @@ export default { bottom: { min: null, max: null }, }; - this.$emit('resizing', this.rect); - this.$emit('resizestop', this.rect); + this.$emit('resizing', this.rect, ev); + this.$emit('resizestop', this.rect, ev); }, calcDragLimitation() {