pirony / ks-vue-scrollmagic

Vue plugin that makes using Scrollmagic with Vue a walk in the park
MIT License
45 stars 9 forks source link

When using with vue-router the plugin is breaking #6

Open iondisc opened 6 years ago

iondisc commented 6 years ago

I can load the site, travel to the route where I have scrollmagic implemented but when I travel to another route the routed component is broken and traveling back to the route with scrollmagic it throws an error

(ScrollMagic.Scene) -> ERROR: Element defined in option "triggerElement" was not found: .pinContainer

Seems like the destroy method is removing more that it should from the DOM.

pirony commented 6 years ago

Hi @iondisc and thx for the feedback! Will fix it ASAP