Here's a webpage: http://kafe.zum.kz
I am using latest version of jquery.ScrollTo.min.js. However, it's not working correctly on iPhone 5 nor latest iPad.
You will see a menu on the top:
When you click e.g. on "КОНТАКТЫ" it will scroll down to div with id="contacts"
but when you click after "КОНТАКТЫ" to "НАШЕ МЕНЮ" it firstly goes to the very top of the page only then it goes to div with id="menu"
. That behavior is met only on iphone & ipad, on android or windows is fine.
It should work like this: you click "КОНТАКТЫ" it scrolls down to this section, then while on this section you're clicking "НАШЕ МЕНЮ" it just scroll up to the "НАШЕ МЕНЮ" section.
here's my js:
// main menu scroll to section
var boks = ['.menu-469', '.menu-471', '.menu-470', '.menu-472', '.menu-473', '.menu-474', '.menu-475', '.menu-476', '.menu-477'];
var element = ['#about', '#zum-slider', '#afisha', '#photos', '#zumenu', '#hotdeals', '#partners', '#karta', '#contacts'];
for (var i = 0; i < 9; i++) {
(function(i) {
$('#main-menu li' + boks[i]).click(function() {
$(window).scrollTo($(element[i]), 800);
//alert(element[i]);
});
}(i));
}
I hope for your help guys. Thanks in advance.
UPDATE1. found answer at: iPad Flicker on auto scroll using JQuery and Scrollto plugin
Going to try it out.