Comments (2)
Hi @andrewjireland, I'm glad you like it, really like the separated logic myself.
There are some issues with Firefox scrolling swup/swup#95.
However, that should not affect the scroll plugin when it's not triggered by the back/forward button.
I think I'm able to replicate this behavior. Firefox probably needs some more time to render the element before checking where it's placed, so delaying the call of scrollTo
by one tick should do the trick, but I'm gonna need to investigate a bit on this. If you (or anyone else) would like to pitch in and create a PR, that would be awesome too.
In any way, thank you for reporting!
from scroll-plugin.
The issue seems to be gone in recent Firefox versions; I'll close this for now. If anyone is still seeing this problem, feel free to reopen.
from scroll-plugin.
Related Issues (15)
- animateScroll doesn't seem to work HOT 6
- Feature Idea: more fine-grained options for animateScroll HOT 3
- Feature Idea: Restore overflowing div's scroll position on popstate HOT 14
- Disable smooth scroll for certain links HOT 11
- `swup.scrollTo()` method needs review HOT 4
- Scroll control of elements on page HOT 3
- Add `ignore` option HOT 11
- Emulate `:target` to allow styling anchor element
- Make `shouldResetScrollPosition` work for non-link requests HOT 1
- Back button scroll restoration not working HOT 19
- A11y: allow disabling animated scroll from visit object HOT 1
- Scroll options not applied correctly HOT 1
- I'm not even sure if this is a issue, but I need help HOT 1
- [Bug]: Visit object `visit.from.url` and `visit.to.url` values incorrect on `scroll:end` lifecycle HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scroll-plugin.