HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.19k stars 2.9k forks source link

Auto scroll when hovering over night/day switch #1638

Closed jrwrigh closed 4 years ago

jrwrigh commented 4 years ago

Describe the bug

When the url for a has a page anchor to is (ie. a #[anchor] at the end of the url), and the "achored" section is not at the top of the webpage, hovering over the night/day toggle will automatically scroll the webpage:

To Reproduce

Steps to reproduce the behavior:

  1. Type in a url that has an anchor in it
  2. Reload the page (not required, but ensures the anchor is working)
  3. Scroll somewhere else
  4. Hover cursor over the night/day toggle. I don't even have to click it.

HugoAcademicNightDayAutoScroll_20200409

Expected behavior

The page to not automatically scroll when hovering over any page element.

Technical details:

gcushen commented 4 years ago

Please provide a URL on the latest demo website where this behaviour is exhibited.

jrwrigh commented 4 years ago

I can't reproduce the issue on the demo website. The above example can be reproduced on my website. An example url there would be https://www.jameswright.xyz/#publications.

Note that this occurs both on my deployed website (using GitHub Pages) and also my local server. If you're willing to take a look, the source for my website is at jrwrigh/jameswright.xyz_source.

gcushen commented 4 years ago

The version you have installed appears not to be v4.8, but a commit from some point in the v4.9 development version as the features you're discussing are not present in v4.8.

I'm closing this for now as you're running the dev (master) version and you've confirmed that you cannot reproduce the issue on the latest master version which powers the demo site.

jrwrigh commented 4 years ago

For documentations sake, to get academic to an actual version instead of master (I did't even realize I was on master), go to themes/academic and run git checkout v.4.8.0 or whatever tag you want to go to.