Browse Source

adding bugfix for is-scrolling

master
Björn 5 years ago
parent
commit
3853ad4cbf
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      dist/js/demo-386.js
  2. +2
    -2
      src/TinyOnePage.riot
  3. +1
    -1
      webpack.mix.js

+ 1
- 1
dist/js/demo-386.js
File diff suppressed because it is too large
View File


+ 2
- 2
src/TinyOnePage.riot View File

@ -237,9 +237,9 @@
let result = undefined; let result = undefined;
if (window.pageYOffset > offset) { if (window.pageYOffset > offset) {
this.$('body').classList.add('is-scrolling');
document.querySelector('body').classList.add('is-scrolling');
} else { } else {
this.$('body').classList.remove('is-scrolling');
document.querySelector('body').classList.remove('is-scrolling');
} }
elements.forEach(function(element, index) { elements.forEach(function(element, index) {


+ 1
- 1
webpack.mix.js View File

@ -15,7 +15,7 @@ const mix = require('laravel-mix');
mix.webpackConfig({ mix.webpackConfig({
module: { module: {
rules: [{ rules: [{
test: /\.riot.js$/,
test: /\.riot$/,
exclude: /node_modules/, exclude: /node_modules/,
use: [{ use: [{
loader: '@riotjs/webpack-loader', loader: '@riotjs/webpack-loader',


Loading…
Cancel
Save