I have the same problem! So far I can’t find the right solution, but there is nothing more than an ideal solution:
Assuming #container has a set of -webkit-overflow-scrolling: touch properties, this jQuery should help you:
$('#container').css('-webkit-overflow-scrolling','auto');
Or for javascript (untested):
document.getElementById('container').style.webkitOverflowScrolling = 'auto';
This will disable smooth roulette-style scrolling on the page. Therefore, it is not perfect, but your page should scroll correctly.
Edit:
Some further research led us to find a more hacky way to solve this problem, while maintaining smooth touch scrolling. Assuming you have -webkit-overflow-scrolling: touch somewhere in css, you can “switch” it to your JS. I'm not sure what you have that shows / hides the menu, but hopefully you can use this.
function toggleMenu(){ $('#container').css('-webkit-overflow-scrolling','auto'); //...Existing code setTimeout(function() { $('#container').css('-webkit-overflow-scrolling','touch'); },500); }
This did not work for me without setTimeout. Hope this can help you or someone else.
Alex Nov 04 '14 at 19:46 2014-11-04 19:46
source share