-
Notifications
You must be signed in to change notification settings - Fork 338
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
Skip position calculation on scroll if tooltip is not displayed #835
Labels
Comments
ladariha
changed the title
Option to skip position calculation on scroll
Skip position calculation on scroll if tooltip is not displayed
Mar 10, 2022
Here's a reproducible case . You can see the scrolling is laggy but if you uncomment // positioningDisabled: true, inside |
@Akryum Thanks a lot for quick fix. May I ask if you have some ETA regarding publishing it to NPM registry? |
It is now deployed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a long list of items (~1000), each item has let's say <10 tooltips made with
v-tooltip
:and then used like
When having hundreds of such tootltips, there is a performance issue when scrolling over the list of 1000 items as the scroll appears to be calling
$_computePosition
(even if no titles/tooltips are displayed to user) from Popper.ts from this code:I guess I understand why it is needed, but would it be possible to either:
_computePosition
on scroll via propsI've noticed in the
$_computePosition
there is following condition:but in my case, the
this.$_isDisposed
isfalse
so it won't bail out from the method. Not sure if thefalse
is correct or notThe text was updated successfully, but these errors were encountered: