开发者

Javascript stop drag event for panorama photos

I've built a simple panorama photo viewer in jquery, see live example here: http://alafiariver.org/alafia/vi开发者_如何学Pythonew/aldermans-ford

How can I prevent this from being dragged too far? These photos vary in width, so the solution needs to be dynamic.


You can use containment property to restrict movement of image. See live example here.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜