Skip to content
Advertisement

Invoke function after div resize is complete?

I have a resizeable div like this:

JavaScript
JavaScript

How do I invoke a function after it has completed resizing?

i.e. I don’t want the function to continuously invoke while it’s being resized,
rather I need it to invoke after the mouse has been lifted from the bottom right resizing icon enter image description here

Advertisement

Answer

You could just check the mouseup event, and track the old v new size.

The only gotcha here is if there are other ways to resize the div other than using the mouse.

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement