-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ngx-page-scroll directive not working in Angular 12 on Chrome specifically #434
Comments
I'm having the same issue. |
Same here |
same here! |
Hi all, I checked with angular 12 and ngx-page-scroll 7.0.5, scrolling via service and directive is working: https://stackblitz.com/edit/ngx-page-scroll-angular-12?file=src/app/app.component.html Can you please provide some details about the problematic projects and the library usages where scrolling is not working as expected. Thanks |
same here |
So it actually works perfectly on Safari, but when I use google chrome, it didn’t scroll to the target at all (It only scrolls like 1cm down). The console says “ngx-page-scroll-core.js:33 Scrolling not possible, as we can’t found the specified target” |
Hi all, A smooth scroll behavior results in the browser to no immediately update the scroll position. NgxPageScroll detects this and assumes scrolling is not possible and stops further attempts. The following code illustrates this:
With scroll-behaviour = auto (default), the output is
However, with scroll-behaviour = smooth the output in Chrome is
|
Same error with Chrome, Angular 12.2.10 and ngx-page-scroll 7.0.6, |
I had the same problem even without smooth scroll behavior My target elements were inside of elements that were observed by IntersectionObserver. I guess Chrome somehow cannot get correct coordinates of the target. After moving those scroll targets out of the items that were observed by IO, scrolling started working (before that, the scroll target position was 0, thus the page was scrolling to the top). |
Had the same error: Was working in Safari but not in Chrome. I am using Bootstrap and yes, CSS Why doesnt this module dont work in Chrome when using smooth-scrolling? Can this be fixed? |
same here, no scrolling at all. I just get redirected to the home page. (ng 13). |
Hi! In my case it scrolls but attributes like pageScrollDuration works rarely, stops on the way, and pageScrollOffset doesn't seems to work (ng13) |
It was working well with Angular 9 on all major browsers.
Now, I'm using the latest "ngx-page-scroll" version on the Angular 12 app. It's working expectedly in Safari but not in chrome and firefox.
Can you please provide an update?
Thanks!
The text was updated successfully, but these errors were encountered: