fix(itemSliding): close items when scrolling content

This commit is contained in:
Adam Bradley
2015-11-16 13:35:20 -06:00
parent b5fc40be92
commit b7c2291dd7
5 changed files with 49 additions and 10 deletions

View File

@@ -73,15 +73,16 @@ export class Content extends Ion {
}
onScrollEnd(callback) {
let timerId;
let timerId, deregister;
function debounce() {
timerId = setTimeout(() => {
deregister();
callback();
}, 250);
}
this.addScrollEventListener(debounce);
deregister = this.addScrollEventListener(debounce);
}
/**