iFrame tag in a window element

@abstract Hello!
I have a Window object, and I'm trying to add an iFrame to it using a Tag. It's added nicely, but when I scroll the Window object, it stays in place and doesn't scroll with the window.
How can I scroll with the window, so that it stays in its proper place all the time?
Tnx

Do other Tag objects like a div scroll with the Window?

@abstract Indeed, I see that even a regular div does not scroll with the window.

** In the meantime, I managed to solve it with:

w.addEventListener("scrolling", (e) => {
    F.update();
});
document.addEventListener("wheel", (e) => {
    F.update();
});

But I wonder, if this doesn't take up too many resources?!?
Do you have another solution?
Or some advice on how to perform this refresh, only while the tag in question is visible on the screen, because refreshing is not always necessary.
Many thanks!

You may be able to just use tag.resize() rather than F.update();

1 Like