diff --git a/FrontCode2/sunshine_levy/src/App.vue b/FrontCode2/sunshine_levy/src/App.vue index 5c4affd..05d1add 100644 --- a/FrontCode2/sunshine_levy/src/App.vue +++ b/FrontCode2/sunshine_levy/src/App.vue @@ -23,7 +23,10 @@ export default { }; document.body.ontouchend = function(e) { this.endValue = e.changedTouches[0].pageY; - if (this.endValue - this.startValue > 0) { + if ( + this.endValue - this.startValue > 0 && + e.changedTouches[0].pageY === e.changedTouches[0].clientY + ) { window.location.reload(); } };