what seems different from ionic 1 is that el.nativeElement.children[0] doesn’t seem to emit events when scroll is released when list is pulled down, it goes from something like -100 directly to zero so I don’t seem able to animate those steps, Is there any other way to do it?
how can it not be regarding ionic 2 it’s a directive I use in ionic 2, and when I use the exact event listener in ionic 1, I get events when scroll is released al the way to zero, and when I do the same thing in ionic 2 I get nothing until it’s zero.
The example is not to get help with the entire code, I’m showing the example so the thing can be reproduced.
Very constructive to call someone lazy by the way…
Actually it was from your tutorial I got the inspiration, though even if I use your code and make it work by placing some parts in ngOnInit(){} instead of in the constructor.
Then pull the scroll part down when it’s at the top of the screen i first get minus from the event listener, but as I release there is no events until its back at zero, on ionic 1 there is events all the way down to zero
What this ends up with is that the scroll is released it bounces back and then when it’s at zero the elastic part updates it’s size instead of doing that for every step in the bounce.
Actually this is something that seems to work for me. I would need then also (and plan to) to pull down the header on scroll up regardless the scroll position.
now this is just dirty mashup of a few solutions. On real device there is problem with proper anchoring of the header but there should be some easy css solution for this.