Wowchemy-hugo-modules: Firefox smooth scroll bug

Created on 3 Jan 2017  路  7Comments  路  Source: wowchemy/wowchemy-hugo-modules

Hello.
I found a little bug on Firefox. When I click on a link in navigation bar, smooth scrolling performs a little further than it should be. It looks like after normal scroll Firefox immediately makes one-step scroll forward, so upper widget's border is behind navigation bar.
Best regards.

bug

All 7 comments

It happens after window.location.hash = hash; is called in hugo-academic.js.

Would be great if smooth scrolling could be made optional

I agree with @rmst. At least simple scrolling (with mouse wheel) seems to be an overkill.

@rmst are your referring to the smooth scrolling for mouse wheel (which is enabled when a user uses the mouse wheel for scrolling in non-Firefox and non-Mac browsers) or are you referring to the smooth animated scrolling which occurs when clicking the navigation links?

@UltraCoderRU in your last comment, I assume you're referring to the first feature I just mentioned. But your issue is related to the second feature, so this discussion might be getting a bit confusing.

@gcushen yes, it is a little offtop here, sorry.

Ah no, for me it was just about the mouse wheel scroll. I didn't like the feel of it very much. Now I just commented out that one line in javascript but doing that in the config would be nicer of course :)

@rmst update 641c699 removes the animated mouse wheel scrolling feature.

@UltraCoderRU update 641c699 should improve the in-page link based scrolling.

I'll close this issue, but please comment to confirm if this fixes your issues or not and I'll re-open if needed :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Framartin picture Framartin  路  4Comments

CommonClimate picture CommonClimate  路  4Comments

saadjavaid picture saadjavaid  路  3Comments

petzi53 picture petzi53  路  4Comments

netw0rkf10w picture netw0rkf10w  路  4Comments