Closed smnbbrv closed 7 years ago
By the way it happens on page reload as well
0.2.4 :) Thanks Simon
@SquadraCorse this one is not covered by my previous pull request. Maybe I understand wrong and it is going to be fixed on 0.2.4?
I fixed it on my fork: https://github.com/smnbbrv/ng-lazy-image/commit/61a7f0c225e153772d53060da8da0bdd1f904ee3 but didn't make a pull request yet. Should I?
@smnbbrv as far as I can see, smnbbrv@61a7f0c is merged. I guess we can close this issue.
By the way, I've opened a pull request which I replaced debounce with throttle in. You may take a look at it.
Hello again guys,
when I reload the page / switch between routes (using ui-router) _onViewChange for the objects contained by $window looks to be called in a wrong time because the height it calculates is much too big.
If I simply wrap _onViewChange content with a simple $timeout (or setTimeout 0ms) it seems to be fixed.
Is there another way to fix this behavior? Maybe I do something wrong? The problem is that some images are not loaded in this case although the offset property I specify is 2 times bigger than images size.
If you need more data just let me know.
Thanks!