fix(refresher): move gesture target to content

* fix(refresher): move gesture target to content
* fix(refresher): attach to closest content
This commit is contained in:
Mike Hartington
2018-05-09 11:06:06 -04:00
committed by GitHub
parent 077fa5edd7
commit df2faa4d2c
2 changed files with 3 additions and 3 deletions

View File

@ -10999,4 +10999,4 @@
}
}
}
}
}

View File

@ -94,7 +94,7 @@ export class Refresher {
*/
@Event() ionStart!: EventEmitter<void>;
constructor() {
componentWillLoad() {
this.gestureConfig = {
'canStart': this.canStart.bind(this),
'onStart': this.onStart.bind(this),
@ -106,7 +106,7 @@ export class Refresher {
'passive': false,
'direction': 'y',
'threshold': 0,
'attachTo': 'window'
'attachTo': this.el.closest('ion-content')
};
}