Work for jQuery dragging and resizing on image

Trying to apply both draggable and resizeable with jQuery to the image does not work correctly. It will resize, but not drag. Are there any known solutions for this?

+3
source share
1 answer

It seems to be ok if I wrapped imgin div:

<div id="drag_resize"><img src="img.jpg"/></div>

And then call resizeable and drag it to div:

$("#drag_resize").resizable().draggable();

Here is a working example: http://jsfiddle.net/andrewwhitaker/HNYVk/

+3
source

Source: https://habr.com/ru/post/1787043/


All Articles