I have 2 scenes, 1 with dom hotspots, other one without. When i changing scene console says "Cannot read property 'onOver' of null" and in scene which is without hotspots they staying. Tryed to hide with css
Code: Select all
var activeScene = this.viewer.story.scenes.filter(x => x.uid === this.viewer.story.sceneUid)[0];
console.log(activeScene.config.hotspots);
activeScene.config.hotspots.forEach(function(eachObj) {
$('#'+eachObj.dom.id).show();
});
It works but anyway console spamming errors.
Example pen: https://codepen.io/BayramovNicat/pen/RLNYme
Can you help me with that?