From e4a967ce358ec67b2e263fe2a91c1f1ec3fe9970 Mon Sep 17 00:00:00 2001 From: chendawei <576120983@qq.com> Date: Mon, 26 Nov 2018 15:46:50 +0800 Subject: [PATCH] fixed: modal draggable compatibility Edge/sogou --- src/components/modal/modal.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue index 07eb0a8b..3c62366d 100644 --- a/src/components/modal/modal.vue +++ b/src/components/modal/modal.vue @@ -280,8 +280,8 @@ const $content = this.$refs.content; const rect = $content.getBoundingClientRect(); - this.dragData.x = rect.x; - this.dragData.y = rect.y; + this.dragData.x = rect.x || rect.left; + this.dragData.y = rect.y || rect.top; const distance = { x: event.clientX,