@@ -102,13 +102,11 @@
this.clientY = e.clientY
}
})
- window.addEventListener('mouseup', e => {
- this.dragging = false
-
+ window.addEventListener('mouseup', e => {
if(this.dragging) {
+ this.dragging = false
this.$emit('input', this.currentPost-1)