Procházet zdrojové kódy

Move line so that if clause did not always return false

sbkwgh před 8 roky
rodič
revize
52a3ec8441
1 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. 2 4
      src/components/PostScrubber.vue

+ 2 - 4
src/components/PostScrubber.vue

@@ -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)
 				}
-				
 			})
 		}
 	}