fixed: modal draggable compatibility Edge/sogou

This commit is contained in:
chendawei 2018-11-26 15:46:50 +08:00
parent 153455c06c
commit e4a967ce35

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,