JSFiddle - React, Tailwind, and code Playground
by hhri
HTML
<link rel="stylesheet" href="http://code.jquery.com/ui/jquery-ui-git.css">
<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<body dir="rtl">
<div id="wrapper" style="overflow:scroll;">
<div id="Div1 ">
<div id="frame">
<img src="http://s24.postimg.org/crf4x0pjp/Lighthouse.jpg " id="ImageView" runat="server " />
</div>
</div>
<div class="ui-draggable" style="z-index: 2; position: absolute; width: 100px; height: 100px; visibility: inherit; top: 0px; left: 0px;">
<img src="http://s22.postimg.org/lu7qyexq9/Untitled.png" id="dragImage" style="filter: alpha(opacity=100); zoom: 1; height: 100%; top: 0px; left: 0px; " />
</div>
</div>
</body>
CSS
#wrapper {
width: 100%;
}
#frame {
overflow: scroll;
position: absolute;
height: auto;
/* float:left;*/
}
JavaScript
$("#dragImage").draggable({
containment: '#ImageView',
appendTo: '#wrapper',
refreshPositions: true,
scroll: true,
scrollSensitivity : 100
});