Hi there, I have some trouble with OpenSeaDragon (1.1.1): I call OpenSeadragonInstance.destroy(), but the Animationframes are still being requested (any browser). this will lead to higher CPU consumption. Any Ideas?
openseadragon needs to detect if the viewer's size changes in order to redraw its content, unfortunately, there is no JS event for that. A common workaround is to just check if the size changed between 2 animation frames.
Is there a way to stop the resizehandler? I have a Window Resize Handler. Only when the windows is resized, the viewer needs an update (there will be no resizing of the viewer, if the windows stays the same size)
The viewer already has an autoResize option you can turn off, but looks like we don't actually stop the requestAnimationFrame sequence if it's turned off. That would be a good thing to fix. Then you could detect the resize yourself and force a redraw then.
@ckuetbach You shouldn't be getting updateMulti if all of your viewer.sources are falsey, so somehow the destroy isn't getting called on one of them or something.