Hello,
i'm writing an iphone optimized site and use jqtscroll for the effects (based on jqtouch):
http://code.google.com/p/jqtscroll/downloads/detail?name=jqtscroll.zip
I have a scrollable container, that i can fill:
<div id="jqt">
......
<div id="lines" class="content">
<div class="toolbar">
<h1>Lines</h1> <a class="button back" href="#">Back</a>
</div>
<div class="scroll" id="bla">
<ul class="edgetoedge">
//content
</ul>
</div>
</div>
.........
</div>
in jqt.scroll.js there is a function scrollTo(x,y) and center()
var scrollNode = document.querySelector(".scroll"), options = {};
var scroller = new TouchScroll(scrollNode, options);
scroller.center();
when i use center() it scrolls to the middle of the page downIf i use scrollTo(0,0) or scrollTo(0,-50) instead of center() so nothing happens. I can't find my mistake, because i didnt change the files. Because when i change the content, i want to scroll up to the top.
Can anyone help me?
[moderator : moved back]