Archive for the ‘scrollto’ tag
window.scrollTo for WebOS / Palm Pre
As WebOS wraps the app content inside a scene/stage structure, scrolling does not work like in other widget runtimes, as you can see here.
So, how to manipulate the scrolling position using Javascript?
Simple, you search for #mojo-scene-main-scene-scroller and set its scrollTop/Left position.
var scroller = document.getElementById("mojo-scene-main-scene-scroller");
if (scroller) {
scroller.scrollTop = y;
}