Requesting full screen refreshes data (html canvas) in object tag

醉酒当歌 提交于 2019-12-06 13:48:25

I guess you are experiencing this on Chrome or other Webkit/Blink browser?

They have a weird behavior regarding <object>, where they unload its content when the element is not in the document anymore (or even just with style=display:none;...

That would make sense it fires here too since the element is actually detached from the active document.

Not much you can do I guess, while you may want to file a bug report, I would strongly suggest you try from an <iframe> instead, which doesn't suffer from this few years old bug...

Ps: it's data="url for <object>, not src="..

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!