W
W
WhiteSama2015-08-11 12:55:30
HTML
WhiteSama, 2015-08-11 12:55:30

Is it possible to track the duration of the mouse scroll?

It is required to perform a certain function when the mouse wheel is scrolled for a long time. And is it possible to track the wheel scroll only if the scroll limit (up or down) is reached?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Martovitskiy, 2019-01-30
@SerpentWeber

Try like this:

function browserSync(done) {
  browsersync.init({
    server: {
      baseDir: "./"
    },
    port: 3000,
    notify: false 
  });
  done();
}

in sass :
.pipe(browsersync.stream())

S
Sam_Gold311, 2021-04-16
@Sam_Gold311

Maybe it will help someone ( do not forget to check the paths ):

var gulp        = require('gulp');
var browserSync = require('browser-sync').create();
var sass        = require('gulp-sass');

// Compile sass into CSS & auto-inject into browsers
gulp.task('sass', function() {
    return gulp.src("src/scss/*.scss")
        .pipe(sass())
        .pipe(gulp.dest("src/css"))
        .pipe(browserSync.stream());
});

// Static Server + watching scss/html files
function serve() {

    browserSync.init({
        server: "./src"
    });

    gulp.watch("src/scss/*.scss", gulp.series('sass'));
    gulp.watch("src/*.html").on('change', browserSync.reload);
};



exports.default = serve;

P
Pavel, 2015-08-11
@WhiteSama

can

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question