Commit e4a967ce358ec67b2e263fe2a91c1f1ec3fe9970
1 parent
153455c0
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, |