Commit 2c3ff061cc1d3de24cf33843cef9f669f8b67723

Authored by Aresn
Committed by GitHub
2 parents 01702799 e4a967ce

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 280  
281 281 const $content = this.$refs.content;
282 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 286 const distance = {
287 287 x: event.clientX,
... ...