scrollTo: function (x, y, time, relative) {
var that = this,
step = x,
i, l;
that.stop();
if (!step.length) step = [{ x: x, y: y, time: time, relative: relative }];
for (i=0, l=step.length; i<l; i++) {
if (step[i].relative) { step[i].x = that.x - step[i].x; step[i].y = that.y - step[i].y; }
that.steps.push({ x: step[i].x, y: step[i].y, time: step[i].time || 0 });
}
that._startAni();
},
after that write
getScrollY: function () {
var that = this;
return that.y;
},
getScrollX: function () {
var that = this;
return that.x;
},
the position in your project you can read so:
myScroll.getScrollY()
myScroll.getScrollX()
Greets Kevin
sorry for the bad english
--
You received this message because you are subscribed to the Google Groups "iScroll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iscroll+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.