Open sayjeyhi opened 4 years ago
I used getBoundingClientRectAsync
to get offsetTop
, but scrollTop is not accessible !! is there any way to get document scroll in amp-script?
@kristoferbaxter @samouri
s.getBoundingClientRectAsync().then(function (data) {
console.log(data);
sections[s.id] = data.top;
});
I need
offsetTop
orscrollTop
need to be supported...