This is my code:
http://jsfiddle.net/652nk/
HTML
<div id="canvas">
<div id="dragme"></div>
</div>
CSS
#canvas {
width:500px;
height:250px;
border:1px solid #444;
zoom:0.7;
}
#dragme {
width:100px;
height:50px;
background:#f30;
}
JS
$(function(){
$('#dragme').draggable({containment:'parent'})
})
I have a major issue when using css zoom
property. Position of target draggable div is not coordinated with cursor position.
Is there any clean and simple solution? I should be able to change zoom dynamically.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…