Skip to content

DidScroll hooks

Compare
Choose a tag to compare
@poteto poteto released this 01 Jun 15:28
· 349 commits to master since this release

This release deprecates the use of didScroll{Up,Down,Left,Right} hooks. You should use didScroll(direction) instead as a hook, like so:

export default Ember.Component.extend(InViewportMixin, {
  didScroll(direction) {
    console.log(direction); // 'up' || 'down' || 'left' || 'right'
  }
});
Changelog