Open morganlegal opened 6 years ago
Maybe it is designed so on purpose, but it seems to me that if you destroy the controller the scenes attached to it should be erased too.
Someting like:
created () { const vm = this vm.$on('addScene', (name, scenes) => { Vue.nextTick(() => { if(vm.controller === null) vm.controller = new vm.$scrollmagic.Controller(); vm.scenes[name] = scenes vm.scenes[name].addTo(vm.controller) }) }) vm.$on('destroyScene', (name) => { vm.scenes[name].destroy(true) }) vm.$on('destroy', (name, scenes) => { vm.scenes = {} vm.controller.destroy(true) vm.controller = null }) }
Hi @Morganlegal, you're right, will be fixed in next release. Thx for your feedback
Perfect. Thank you
Maybe it is designed so on purpose, but it seems to me that if you destroy the controller the scenes attached to it should be erased too.
Someting like: