Slider: fix change event (#1810)

pull/1818/head
杨奕 2016-12-18 21:20:27 +08:00 committed by baiyaaaaa
parent 71a3b5ad2f
commit 8123ee1c48
1 changed files with 2 additions and 2 deletions

View File

@ -195,9 +195,9 @@
*/
setTimeout(() => {
this.dragging = false;
this.$refs.tooltip.showPopper = false;
this.setPosition(this.newPos);
}, 0);
this.$refs.tooltip.showPopper = false;
this.setPosition(this.newPos);
window.removeEventListener('mousemove', this.onDragging);
window.removeEventListener('mouseup', this.onDragEnd);
window.removeEventListener('contextmenu', this.onDragEnd);