When does a resize stop event occur? (JQuery user interface)

hey everyone.
I would like the object to drag after resizing is complete, but I don't know when it will end. what action triggers the stop event?

Thank you

+3
source share
1 answer

I think you are looking for an event resizestopthat fires at the end of a resize operation. You can use this event when initializing a mutable object:

$("#resizable_div").resizable({
    stop: function(event, ui) {
        alert('stopped resizing');
    }
});

Or you can use bindan event handler to attach:

$("div").bind("resizestop", function(event, ui) {
    alert('stopped resizing');
});
+2
source

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


All Articles