Okay so I'm testing this in Safari, I'm sure it's the same in other browsers but I haven't checked (yet)!
This piece of script works great and is not jaggerdy or buggy at all:
$('body').css('overflow', 'hidden');
$(window).scroll(function() {
$(this).scrollTop(0).scrollLeft(0);
});
And this is what I need, but it seems to be very buggy and jaggerdy when you try and scroll, it scrolls a bit and the corrects itself (within about 100 milliseconds) whereas the above script doesn't let you scroll at all.
$('body').css('overflow-x', 'hidden');
$(window).scroll(function() {
$(this).scrollLeft(0);
});
Is this a known bug or is there a fix at all?
EDIT: For those of you who are looking for an answer, there actually isn't one. This is only a known bug in Safari (most possibly only on Mac too).