Test Case Boilerplate
Fork this way...
HTML
<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/jquery-ui-git.css">
<div id="div1">
<img src="http://www.sparklytrainers.com/blog/IMG_1887.JPG" name="testImage"
id="testImage">
</div>
CSS
#div1
{
border: solid 1px Black;
width: 635px;
height: 100%;
overflow:auto;
cursor:move;
}
JavaScript
$('#testImage').draggable({ revert: true, scroll: true });