Skip to content

Commit 86fd768

Browse files
committed
Updated touchup events to be touchend events
1 parent e808169 commit 86fd768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TwentyTwenty.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ export default {
117117
118118
mounted () {
119119
document.addEventListener("touchmove", this.moveSlide)
120-
document.addEventListener("touchup", this.endSlide)
120+
document.addEventListener("touchend", this.endSlide)
121121
document.addEventListener("mousemove", this.moveSlide)
122122
document.addEventListener("mouseup", this.endSlide)
123123
window.addEventListener("resize", this.resize)
124124
},
125125
126126
beforeDestroy () {
127127
document.removeEventListener("touchmove", this.moveSlide)
128-
document.removeEventListener("touchup", this.endSlide)
128+
document.removeEventListener("touchend", this.endSlide)
129129
document.removeEventListener("mousemove", this.moveSlide)
130130
document.removeEventListener("mouseup", this.endSlide)
131131
window.removeEventListener("resize", this.resize)

0 commit comments

Comments
 (0)