iframe-resizer icon indicating copy to clipboard operation
iframe-resizer copied to clipboard

selective listeners

Open yumyo opened this issue 8 years ago • 4 comments

Hello, I'm not sure if I'm missing some way to achieve that but it will be very userful to have the ability to selectively enable/disable the various resize listener, especially click and dom changes in the iframe content.

yumyo avatar Nov 10 '15 15:11 yumyo

Yep something on the list for the future.

In the meantime setting interval to a negative number disables the DOM observer. Pick a large negative value to stop the interval check running as well.

davidjbradshaw avatar Nov 10 '15 23:11 davidjbradshaw

Thank you David. In the meanwhile, to achive it manually, it is just a matter of "selectively" commenting the manageTriggerEvent lines under the manageEventListeners function inside iframeResizer.contentWindow.js ?

yumyo avatar Nov 11 '15 14:11 yumyo

Yep you can do that.

davidjbradshaw avatar Nov 11 '15 15:11 davidjbradshaw

Great, thanks.

yumyo avatar Nov 11 '15 16:11 yumyo

These will be removed in V5

davidjbradshaw avatar Feb 13 '24 14:02 davidjbradshaw