В настоящее время я работаю над проектом с jQuery mobile, и я сделал div draggable. Взаимодействие с перетаскиванием работает отлично, пока я не открою сайт на моем Samsung S3 mini.Перемещаемое взаимодействие, не работающее на сотовый телефон
Это моя голова:
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="themes/florida_tech.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile.structure-1.3.1.min.css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>`
Это скрипт для взаимодействия дрэг:
<script>
$(window).load(function() {
$("#draggable").draggable({ axis: "x" });
});
</script>
ДИВ Я двигаюсь имеет ID = Draggable:
<div data-role="content" style="margin:0px; padding:0px; border:0px">
<div id="draggable" class="draggable ui-widget-content" style="position:relative; height: 347px">
<div style="z-index: 1; position: absolute; top: 0px; left: 0px">
<img src="style/pic.png" alt="Parking Lot Map"/>
</div>
<div style="background-color:green; width:17px; height:35px; z-index: 2; position: absolute; top: 31px; left: 81px ">   </div>
<div style="background-color:green; width:17px; height:35px; z-index: 2; position: absolute; top: 31px; left: 102px ">   </div>
</div>
</div>
что, если Я не хочу, чтобы div возвращался в свое первоначальное место. Я просто хочу заставить его перетащить. Я прочитал код, но я не мог понять, как заставить его просто перетащить. – JoseD