donejs/donejs

Browser back button should not cause the page to autoscroll on DoneJS site

Open

#859 建立於 2017年3月8日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)JavaScript (1,356 star) (164 fork)batch import
bughelp wantedp4

描述

How often can you reproduce it?

  • Always

Description:

When using the DoneJS site I noticed some behavior that may not be desirable, especially when navigating between long scrolling pages like when following a guide or reading documentation.

Steps to reproduce:

  1. Visit https://donejs.com/contributing.html#section=section_ReportingBugs
  2. Scroll down the page a bit.
  3. Visit google.com in that same tab.
  4. Use browser back button.

Expected results:

Scroll position remains unchanged.

Actual results:

Scroll position is animated towards that anchor matching the URL hash.

Environment:

Software Version
Browser Google Chrome 59.0.3035.0 (Official Build) canary (64-bit)
Operating system macOS 10.12.3

貢獻者指南