I use jqtouch and iscroll for my app. I load all pages with ajax and when I go back from a ajax loaded page to the index (menulist) page, that page scrolls to the top. How can I prevent this? Thanks.
prevent scrolling to top of page with iscroll?
2.5k Views Asked by Claes Gustavsson At
2
There are 2 best solutions below
1

I believe there is a boolean option called topOnDOMChanges
var scroll = new iScroll(contentid, {
desktopCompatibility: true,
bounce: true,
momentum: true,
checkDOMChanges: false,
topOnDOMChanges: false
});
From the Beedesk fork of JQTouch https://github.com/beedesk/jQTouch/blob/master/demos/main/index.html
have you tried to set the option checkDOMChanges to false?