From 80c6eee89330d95bddb4a0fd5f775284ecdbe7e2 Mon Sep 17 00:00:00 2001 From: Jack Matthews Date: Thu, 7 Jun 2018 17:36:50 +0100 Subject: [PATCH] feat(scroll-collapse): emit scroll direction events --- README.md | 6 +++--- src/app/app.component.html | 2 +- src/app/app.component.ts | 7 ++++++- .../scroll-collapse.directive.spec.ts | 14 ++++++++++++++ .../scroll-collapse/scroll-collapse.directive.ts | 11 ++++++++++- 5 files changed, 34 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9a26c23..9109b92 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Commitizen friendly][commitizen-badge]][commitizen] [![code style: prettier][prettier-badge]][prettier-badge-url] -A simple lightweight library for [Angular][angular] that detects scroll direction and adds a `sn-scrolling-up` or `sn-scrolling-down` class to the element. The library can also detect when the user has scrolled passed the element and apply a `sn-affix` class. Useful for make a element sticky when the user has scrolled beyond it. This library can will also apply `sn-minimise` class after the user has scrolled beyond the height of the element. +A simple lightweight library for [Angular][angular] that detects scroll direction and adds a `sn-scrolling-up` or `sn-scrolling-down` class to the element and emits an appropriate event. The library can also detect when the user has scrolled passed the element and apply a `sn-affix` class. Useful for make a element sticky when the user has scrolled beyond it. This library can will also apply `sn-minimise` class after the user has scrolled beyond the height of the element. This is a simple library for [Angular][angular], implemented in the [Angular Package Format v5.0][apfv5]. @@ -60,15 +60,15 @@ A working example can be found inside [/src](https://github.com/thisissoon/angul ### Scroll direction ```html -