alvarotrigo / alvarotrigo/fullPage.js

Scrolling with middle button in Chrome

Đang mở
#2,021 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
JavaScript
Star
35.4k
Fork
7.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.