From c25375b951621991c2a5065156b3a30fb9c30d85 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 9 Apr 2018 16:33:50 -0400 Subject: [PATCH] Disable browsersync ghost mode for scrolling and enable it for clicks and form input --- gulpfile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 5ea0647..72890ae 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -186,7 +186,13 @@ gulp.task("js-dashboard-watch", [ "js-dashboard" ], watchReload); gulp.task("watch", function() { browserSync.init({ logLevel: "silent", - baseDir: "./public" + baseDir: "./public", + + ghostMode: { + clicks: true, + forms: true, + scroll: false + } }); gulp.watch(jsPublic, [ "js-public-watch" ]);