scrollama icon indicating copy to clipboard operation
scrollama copied to clipboard

Remove visual debugging tool on instance destruction?

Open ivanbacher opened this issue 4 years ago • 0 comments

Should the visual debugging tool also be removed when calling scroller.destory()?

Not that important, but maybe something to keep in mind for v3.

This is probably also more applicable when using single pages applications like vue, aurelia, svelte ....

Pretty simple to remove the visual debuggers at the moment, but one more thing to remember:

window.document.body
      .querySelectorAll('.scrollama__debug-step')
      .forEach(el => el.remove())

ivanbacher avatar Nov 04 '21 11:11 ivanbacher