From a030bdf333b99f17651261578d6efa524310690e Mon Sep 17 00:00:00 2001 From: bjoern Date: Sun, 15 Sep 2019 17:13:32 +0200 Subject: [PATCH] change naming --- package.json | 2 +- src/{TinyOnePage.riot.js => TinyOnePage.riot} | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) rename src/{TinyOnePage.riot.js => TinyOnePage.riot} (97%) diff --git a/package.json b/package.json index 00c6fec..b173a5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tiny-one-page", - "version": "1.0.0", + "version": "1.0.1", "description": "One Page Menu with RiotJS, part of Tiny-Components", "scripts": { "dev": "npm run development", diff --git a/src/TinyOnePage.riot.js b/src/TinyOnePage.riot similarity index 97% rename from src/TinyOnePage.riot.js rename to src/TinyOnePage.riot index 5d848fb..b8362e1 100644 --- a/src/TinyOnePage.riot.js +++ b/src/TinyOnePage.riot @@ -236,6 +236,12 @@ // get result let result = undefined; + if (window.pageYOffset > offset) { + this.$('body').classList.add('is-scrolling'); + } else { + this.$('body').classList.remove('is-scrolling'); + } + elements.forEach(function(element, index) { // getting target