alvarotrigo / alvarotrigo/fullPage.js

Scrolling with middle button in Chrome

Aberta
#2,021 3 comentários 0 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
JavaScript
Estrelas
35.4k
Forks
7.1k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### Problem

we are using fullPage on https://seznam.cz/aplikace and when I switch to "scroll mode" (on windows with middle mouse button) and start scrolling, scroll mode ends when url is changed.

I made some tests in jsfiddle and it seems that this only happens in Chrome and when you change hash with `window.location.hash`, when you use`window.history.push/replaceState` it works as expected

You can see the problem on following gif
http://i.imgur.com/fKLHFO5.gif
### Specs

System: Window 7
Browser: Chrome 50.0.2661.102 m (FF and IE seems to work fine)
### Proposed solution

use `window.history` API if browser supports it, otherwise fallback to `window.location.hash`

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.