mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
Derp to repull
This commit is contained in:
@ -1,4 +1,7 @@
|
|||||||
<ion-view nav-title="Pull to refresh">
|
<ion-view nav-title="Pull to refresh">
|
||||||
|
<ion-toolbar>
|
||||||
|
<ion-title>Pull to Refresh</ion-title>
|
||||||
|
</ion-toolbar>
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<ion-refresher (refresh)="doRefresh($event, amt)"></ion-refresher>
|
<ion-refresher (refresh)="doRefresh($event, amt)"></ion-refresher>
|
||||||
|
@ -23,7 +23,6 @@ export class Refresher {
|
|||||||
this.refresh = new EventEmitter('refresh');
|
this.refresh = new EventEmitter('refresh');
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.doRefresh();
|
|
||||||
content.scrollElement.addEventListener('scroll', function(e) {
|
content.scrollElement.addEventListener('scroll', function(e) {
|
||||||
console.log('CONTENT: scroll', e.target.scrollTop);
|
console.log('CONTENT: scroll', e.target.scrollTop);
|
||||||
});
|
});
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
ion-refresher {
|
ion-refresher {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
display: block;
|
display: block;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: red;
|
background-color: red;
|
||||||
z-index: -1;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user