|
|
@ -109,7 +109,7 @@ export class HomeComponent implements OnInit { |
|
|
|
const direction = [coord[0] - this.swipeCoord[0], coord[1] - this.swipeCoord[1]] |
|
|
|
const duration = time - this.swipeTime |
|
|
|
|
|
|
|
if (duration < 1000 |
|
|
|
if (duration < 1500 |
|
|
|
&& Math.abs(direction[0]) > 30 |
|
|
|
&& Math.abs(direction[0]) > Math.abs(direction[1] * 3)) { |
|
|
|
const swipe = direction[0] < 0 ? 'next' : 'prev' |
|
|
|