Errors during Window resize for Viewer that isn't visible -


i hosting autodesk viewer inside bootstrap div, , find when tab not active, hiding viewer, there errors thrown when window resized.

i avoid tearing down viewer , preventing handling resize events when tab deactivated.

is there way this?

yes correct, attach handler tab hidden depending on code , below:

if (this.viewer) {    if(this.viewer.impl.selector) {      this.viewer.teardown()     this.viewer.finish()     this.viewer = null   } } 

Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -