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