Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browsersync doesn't save scroll position in Firefox. #1418

Closed
testgit-1 opened this issue Aug 25, 2017 · 1 comment
Closed

Browsersync doesn't save scroll position in Firefox. #1418

testgit-1 opened this issue Aug 25, 2017 · 1 comment

Comments

@testgit-1
Copy link

testgit-1 commented Aug 25, 2017

Issue details

Page scrolls up after file changes (include changes in css).
After css changes I got notification "Injected: style.css". But page scrolls up too.
It's break our work process.

Steps to reproduce/test case

The problem occurs in Firefox after changes css for long html page.

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 2.18.13 ]
  • Node [ 7.7.1 ]
  • Npm [ 5.3.0 ]

Affected platforms

  • windows

Browsersync use-case

  • Gulp v.3.9.1

for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync

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

gulp.task('server', function() {
  browserSync.init({
    server: {
      baseDir: 'build/',
    },
    open: false,
    online: false,

    files:[  
        'build/*.html',
        'build/css',
        'build/js',
        'build/fonts/',
        'build/img',
    ],

    ghostMode: {
        scroll: true
    },

    logLevel: 'info', // 'debug', 'info', 'silent', 'warn'
    logConnections: false,
    logPrefix: "Browser-Sync",
    port: 8080,
    notify: true
  });
});
@shakyShane
Copy link
Contributor

fixed in browser-sync@2.24.7 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants