我试图用Hammer.js拖动一个div
var revcircle = document.getElementById('rev-circle');
var rc = new Hammer(revcircle);
rc.on("drag", function(event) {
event.preventDefault();
alert('dragged');
});
Run Code Online (Sandbox Code Playgroud)
rev-circle是我的div.
<div class="mini-circles1" id="rev-circle" draggable="true">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. <br/><br/> John Campbell<br>President and CEO<br> Toranto Waterfront Revitalization Corportation</p>
</div>
Run Code Online (Sandbox Code Playgroud)
我也包括了jquery ui.但它没有识别拖动功能.轻扫等工作正常.我使用的是锤版v2.0.4.
我在这里遗漏了什么???