Commit 2c3ff061cc1d3de24cf33843cef9f669f8b67723
Committed by
GitHub

Merge pull request #4903 from daweichendoctor/2.0
fixed: modal draggable compatibility Edge/sogou
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/components/modal/modal.vue
@@ -280,8 +280,8 @@ | @@ -280,8 +280,8 @@ | ||
280 | 280 | ||
281 | const $content = this.$refs.content; | 281 | const $content = this.$refs.content; |
282 | const rect = $content.getBoundingClientRect(); | 282 | const rect = $content.getBoundingClientRect(); |
283 | - this.dragData.x = rect.x; | ||
284 | - this.dragData.y = rect.y; | 283 | + this.dragData.x = rect.x || rect.left; |
284 | + this.dragData.y = rect.y || rect.top; | ||
285 | 285 | ||
286 | const distance = { | 286 | const distance = { |
287 | x: event.clientX, | 287 | x: event.clientX, |