fix(refresher): tune threshold

fixes #15233
This commit is contained in:
Manu Mtz.-Almeida
2018-08-24 23:26:33 +02:00
parent 5c6fe458d0
commit d129f62e25
2 changed files with 7 additions and 1 deletions

View File

@ -17,6 +17,9 @@
</ion-toolbar> </ion-toolbar>
</ion-header> </ion-header>
<ion-content padding> <ion-content padding>
<ion-refresher>
<ion-refresher-content></ion-refresher-content>
</ion-refresher>
<h1>Page One</h1> <h1>Page One</h1>
<ion-nav-push component="page-two"> <ion-nav-push component="page-two">
<ion-button class="next">Go to Page Two</ion-button> <ion-button class="next">Go to Page Two</ion-button>
@ -37,6 +40,9 @@
</ion-toolbar> </ion-toolbar>
</ion-header> </ion-header>
<ion-content padding> <ion-content padding>
<ion-refresher>
<ion-refresher-content></ion-refresher-content>
</ion-refresher>
<h1>Page Two</h1> <h1>Page Two</h1>
<div> <div>
<ion-nav-push component="page-three"> <ion-nav-push component="page-three">

View File

@ -108,7 +108,7 @@ export class Refresher {
gestureName: 'refresher', gestureName: 'refresher',
gesturePriority: 10, gesturePriority: 10,
direction: 'y', direction: 'y',
threshold: 10, threshold: 20,
passive: false, passive: false,
canStart: this.canStart.bind(this), canStart: this.canStart.bind(this),
onStart: this.onStart.bind(this), onStart: this.onStart.bind(this),