css-element-queries icon indicating copy to clipboard operation
css-element-queries copied to clipboard

Feature request: Delayed call of the callback function.

Open VARGA-Peter opened this issue 4 years ago • 0 comments

I love the plugin. Finally, I can easy get the size of an element I need to know.

I would like to propose here a feature: Currently, the function is called each time the element is resized. What about a 2nd functionality, that the function isn't called each time but once the resize has been finished. Of course, when has been such a resize finished?

I would suggest to use a delay which can be provided to the sensor [for example 0.5 seconds] and when after this delay the element hasn't been resized the callback function will be called.

Cheers!°

VARGA-Peter avatar Oct 06 '20 12:10 VARGA-Peter