diff --git a/FrontCode2/sunshine_levy/src/App.vue b/FrontCode2/sunshine_levy/src/App.vue index a6f8271..aa3ad00 100644 --- a/FrontCode2/sunshine_levy/src/App.vue +++ b/FrontCode2/sunshine_levy/src/App.vue @@ -24,7 +24,11 @@ export default { }; app.ontouchend = function(e) { this.endValue = e.target.offsetTop; - if (this.endValue - this.startValue > 0) { + if ( + this.endValue - this.startValue > 0 || + app.offsetTop > 0 || + app.clientTop > 0 + ) { window.location.reload(); } };