I have been developing some jquery with sticky headers but when i test it on ipad there is a slight delay and jumps around the page.
is this an issue that can be solved in the code or is it a general ios problem? I have looked into the similar problems on the net but havent found a definite answer.
var offset = $(".sticky-header").offset();
var sticky = document.getElementById("sticky-header")
var additionalPixels = 50;
$(window).scroll(function () {
if ($(window).scrollTop() > offset.top - additionalPixels) {
$('#profile-container').addClass('fixed');
} else {
$('#profile-container').removeClass('fixed');
}
});
Thanks for any help !