ngx-scroll-to icon indicating copy to clipboard operation
ngx-scroll-to copied to clipboard

Zoom - wrong position.

Open bemiks opened this issue 6 years ago • 2 comments

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:

bemiks avatar Apr 09 '19 08:04 bemiks

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 avatar Apr 09 '19 09:04 bemiks

@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 👍 .

nicky-lenaers avatar Aug 10 '20 14:08 nicky-lenaers

Closed due inactivity

rafa-suagu avatar Oct 23 '22 22:10 rafa-suagu