单击按钮时,将打开弹出窗口。我将弹出窗口向左,向右,向上和向下拖动。它在Internet Explorer和Mozilla Firefox中运行良好。当我在Chrome版本(39.0.2171.95米)中拖动弹出窗口时,它无法正常工作。它随机移动。请建议我如何进一步。
$("#myModal").draggable({
containment: "#container",
handle: ".modal-header"
});
<div id="myModal" class="modal fade" >
<div class="arrow"></div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header" style="padding:0px 0px">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="margin-top:12px;margin-right:12px;">×</button>
<h3 class="popover-title">Voter Variables</h3>
</div>
<div class="modal-body">
<p>${variableSubstitutionList}</p>
</div>
</div>
</div>
</div>
</div>