开发者

Android: Making a Looping HorizontalScrollView of a Panoramic Image with Javascript

I want to make a panoramic image scrollable, and to loop b开发者_Python百科ack and 'stitch' its front to its back after the user has reached the end of the image.

The effect I'm trying to recreate is congruent to the one found in Trying to create an infinite horizontal scroll - preferably using a jquery plugin.

The only problem is that I need it to be in Javascript, because I'm doing it on the Android.

Any suggestions?


Ok, here's what worked for me. Append the same image behind the first one, that way when you get to the end of the first one, it will look like a panorama. Then, you could check scrollLeft() and adjust the position based on which way the user is scrolling.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜