As a developer specializing in Salesforce, I have successfully implemented a scroll feature that allows users to swipe up and down on all browsers and devices such as iPhone, iPad, and Android. However, when the same page is viewed in the Salesforce1 app, the "scrollTo" function does not work at all. Despite trying various tricks like using window.scrollTo(10,10) and jQuery animations, none of them seem to be effective in resolving this issue. Any assistance or guidance in overcoming this challenge would be greatly appreciated.
Some of the methods I attempted include:
window.scrollTo(10,10);
$('body').stop().animate({scrollTop:1000},'slow');
$('html').stop().animate({scrollTop:1000},'slow');
setTimeout(function(){
window.scrollTo(10,10);
}, 3000);
Note: The perplexing aspect of this situation is why window.scrollTo functions smoothly in iOS and Android browsers but encounters difficulties specifically within the Salesforce1 app.