You could use something like this too: http://jsfiddle.net/xz8EB/28/
On Thursday, August 23, 2012 3:04:16 PM UTC+2, Tim wrote: > > Hey guys! > > I'm creating a simple image-slideshow and ran into a problem: > > First of all here's the fiddle <http://jsfiddle.net/xz8EB/> > > When releasing the images after dragging them back and forth, the goal is > to precisely fit the next or the previous image in the container. > The problem occurs when randomly clicking and dragging back and forth. The > Scroll seems to get "stuck" and there is this weird random offset. > > Can anyone take a look? > What am I doing wrong? > > Many thanks! >