Skip to content

Conversation

@stefashkaa
Copy link
Contributor

Description

I've implemented scroll sections component which is used for changing routes and set active link when user is scrolling.

Works done

  • Implement Scroll Sections
  • Add stories for Scroll Sections and Scroll Section Item components

@stefashkaa stefashkaa requested review from Asmadek and Pobepto July 20, 2020 08:29
@stefashkaa stefashkaa merged commit 7c98bef into develop Jul 20, 2020
@stefashkaa stefashkaa deleted the feature/scroll-sections branch July 20, 2020 09:46
return
}
this.menuItems = this.$children
window.addEventListener('scroll', this.handleScroll)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the event be cleaned up after the object is destroyed?
I think we should add removeEventListener

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, thx. will add it in the next PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants