From e288476ba08997c2e6ce0ff03cfa7647e323ff06 Mon Sep 17 00:00:00 2001 From: DanielApt Date: Mon, 28 Sep 2015 11:13:25 +0100 Subject: [PATCH] Update README.md with new events --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 46e5f78..1187b6c 100644 --- a/README.md +++ b/README.md @@ -334,6 +334,18 @@ This event fires when scrolling to the left. ### ps-scroll-right This event fires when scrolling to the right. +### ps-y-reach-start +This event fires when scrolling reaches the start of the y-axis. + +### ps-y-reach-end +This event fires when scrolling reaches the end of the y-axis (useful for infinite scroll). + +### ps-x-reach-start +This event fires when scrolling reaches the start of the x-axis. + +### ps-x-reach-end +This event fires when scrolling reaches the end of the x-axis. + You can listen to these events either with vanilla JavaScript ```javascript document.addEventListener('ps-scroll-x', function () {