views:

22

answers:

1

I've built a simple panorama photo viewer in jquery, see live example here: http://alafiariver.org/alafia/view/aldermans-ford

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

A: 

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

Mayur