Skip to content
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

Scrolling becomes very laggy in ngFor after using multiple ngx-popper's #114

Open
d9nny opened this issue Jun 26, 2019 · 2 comments
Open

Comments

@d9nny
Copy link

d9nny commented Jun 26, 2019

Hi,

Thanks for the wrapper, it's great.

I'm having a bad performance issue when scrolling in an ngFor list after multiple dropdown's (using ngx-popper) have been used.

I have a list, each item has a dropdown, which is only added to the DOM if the user is hovering on the item. It works great initially, but as I use more and more of the dropdown's (Only one at a time), the scrolling of the list becomes very laggy. I replaced the dropdown's with ng-bootstrap's dropdown and that solved the issue, so i think the issue is being caused by popper. It's also just happening to the list where the dropdown's are. So if I have two lists and I use the left one heavily, scrolling the left will become very laggy, but the right will be fine.

I'm assuming something is getting left behind, a listener or something? Any ideas what might be causing it?

Thanks

@d9nny d9nny changed the title Scrolling in ngFor with multiple ngx-popper becomes very laggy after opening the poppers Scrolling becomes very laggy in ngFor after using multiple ngx-popper Jun 26, 2019
@d9nny d9nny changed the title Scrolling becomes very laggy in ngFor after using multiple ngx-popper Scrolling becomes very laggy in ngFor after using multiple ngx-popper's Jun 26, 2019
@MrFrankel
Copy link
Owner

@d9nny i'm happy you find the library useful.
Can you provide some code examples? or better yet a repro?

@axrae
Copy link

axrae commented Jan 30, 2020

Here's one i did trying to track down why touch events fired on wrong locations after including ngx-popper. It didn't end up reproducing my issue, but it does do bad things to FPS while scrolling after opening and closing ever more tooltips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants