ngx-scroll-to
ngx-scroll-to copied to clipboard
Zoom - wrong position.
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
Current behavior
After dynamic change of element's size (scroll css property) - scrollTo doesn't properly 'count' the right position. If I will click the button 2nd time, it goes to the right place. Offset 0. ScrollTo service.
Expected behavior
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
Angular version: 7.2
Your version of `@nicky-lenaers/ngx-scroll-to`: 2.0
Browser:
- [X] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
Others:
Honestly - i've just used a simple js code instead of your library.
const element = document.getElementById('id') element.scrollIntoView({ behavior: 'smooth', block: 'start' });
@bemiks Thank you for your comment. I am aware of this, as I marked this repo archived earlier and referred to your solution instead. However, some folks still depended on this lib, so development continued mainly to support newer Angular versions.
I am glad you found a nice and clean solution yourself 👍 .
Closed due inactivity