Skip to content

Remove visual debugging tool on instance destruction? #128

@ivanbacher

Description

@ivanbacher

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())

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions