matiasgali / guillotine

jQuery plugin to crop images within an area (fully responsive), allowing to drag (touch support), zoom and rotate.
http://guillotine.js.org
326 stars 100 forks source link

Dragging isn't working when applying guillotine on a <div> instead of <img> #64

Open omarqe opened 7 years ago

omarqe commented 7 years ago

The drag feature is not working when I apply it on #src. Help? My code looks pretty much like this:

HTML <div class="picture-container" style="width:80%"><div id="src" style="background-image:url(http://localhost/images/image.jpg)></div></div>

JS var p = $('#src'); p.guillotine();