elwayman02 / ember-scroll-modifiers

Scroll-based Modifiers for Ember.js Applications
https://ember-scroll-modifiers.jhawk.co/
MIT License
21 stars 11 forks source link

New scroll-into-view modifier #261

Closed ygongdev closed 2 years ago

ygongdev commented 3 years ago

Description Adding a new scroll-into-view functional modifier that mimics the native scrollIntoView.

API The arguments are chosen to closely mimc the API of the native scrollIntoView, which accepts an object parameter. We also introduce a boolean/promise to conditionally trigger the scrollIntoView functionality.

Examples

<div {{scroll-into-view options=this.scrollOptions shouldScroll=this.shouldScroll}}></div>
miguelcobain commented 2 years ago

Was this addressed by #360?

elwayman02 commented 2 years ago

Yup, thanks!