Merge pull request #4903 from daweichendoctor/2.0

fixed: modal draggable compatibility Edge/sogou
This commit is contained in:
Aresn 2018-12-17 10:38:44 +08:00 committed by GitHub
commit 2c3ff061cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,