Answer the question
In order to leave comments, you need to log in
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
Try like this:
function browserSync(done) {
browsersync.init({
server: {
baseDir: "./"
},
port: 3000,
notify: false
});
done();
}
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;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question