Javascript Scrolling Image edge detection
<p>Currently I am experimenting with a little Image Zoom/Scroller script that I am trying to create, and yes I know there are plugins out there that do this but I am developing this for a lightweight version and for learning to. The main problem I have now is, that I am not sure how to constrain my image scrolling to only the width and height of my image. I would like to set up my script to stop the image from scrolling when the user gets to a ceartin width or height of the image to stop the image from being scrolled out of the div. Below is a fiddle to my script, any suggestions or tips to help me move in the right direction would be much appreciated <a href="http://jsfiddle.net/WpMyU/14/" rel="nofollow">click here to go to fiddle</a></p>
