I am calling:
window.scrollTo(0,this.stateModel.get("scrollY"));
in phonegap in a view's render function.
This code works on the android emulator, but not on the iPhone 6.0 emulator.
Is there any reason scrollTo wouldn't work on IOS?
I am calling:
window.scrollTo(0,this.stateModel.get("scrollY"));
in phonegap in a view's render function.
This code works on the android emulator, but not on the iPhone 6.0 emulator.
Is there any reason scrollTo wouldn't work on IOS?
I had issues with this as well. As a workaround, I simply created an anchor element in the desired position and then invoked a click event on a hidden anchor link.
<a class="anchor" href="#desiredLocation" style="display: none;"></a>
<a id="desiredLocation"></a>
jQuery code...
$(".anchor").click();
Not the most elegant solution, but it provides the same behavior.