Open maximusDreddoff opened 7 years ago
I have faced with scroll problems on my android device (xiaomi redmi note 4) when set attr infinite-scroll-distance = '0.5'
I am using angular 1.4.2
And there is no check for Integerity in your library(version 1.0.0):
scrollDistance = 0; if (attrs.infiniteScrollDistance != null) { scope.$watch(attrs.infiniteScrollDistance, function(value) { return scrollDistance = parseInt(value, 10); });
so I had to change it to :
if (attrs.infiniteScrollDistance != null) { scope.$watch(attrs.infiniteScrollDistance, function (value) { return scrollDistance = parseFloat(value); }); }
@maximusDreddoff ah parseFloat would be way better, can you create a PR?
@graingert yep, of course. I will try to create on Monday.
I have faced with scroll problems on my android device (xiaomi redmi note 4) when set attr infinite-scroll-distance = '0.5'
I am using angular 1.4.2
And there is no check for Integerity in your library(version 1.0.0):
so I had to change it to :