You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have a huge list of items (which happens to be part of a tree view) that all have a hover text that takes some time to generate. Not a lot, but enough to currently limit the performance of the application (for huge lists, which luckily doesn't happen very often). It would, in my case, probably be more efficient if the hover text was generated on display rather than every frame for every item (which I think is what is happening now).
Describe the solution you'd like
A method similar to on_hover_text, but that takes a function which is executes to get the hover text.
Describe alternatives you've considered
Not really.
Additional context
I am open to the fact that I am missing something due to limited Rust skills. As the list is in a tree view, it is not obvious to me if/how show_rows of the ScrollArea is used in this case.
The text was updated successfully, but these errors were encountered:
There is on_hover_ui. I'm not sure about using show_rows with a tree view, though. You might be able to do a regular show, cache the offset of each item from the previous frame, and then skip the items that are out of view and just call add_space to produce the same offset, which is more or less what show_rows does. But I haven't tried that and I'm not sure if there are any pitfalls.
Is your feature request related to a problem? Please describe.
I have a huge list of items (which happens to be part of a tree view) that all have a hover text that takes some time to generate. Not a lot, but enough to currently limit the performance of the application (for huge lists, which luckily doesn't happen very often). It would, in my case, probably be more efficient if the hover text was generated on display rather than every frame for every item (which I think is what is happening now).
Describe the solution you'd like
A method similar to
on_hover_text
, but that takes a function which is executes to get the hover text.Describe alternatives you've considered
Not really.
Additional context
I am open to the fact that I am missing something due to limited Rust skills. As the list is in a tree view, it is not obvious to me if/how
show_rows
of the ScrollArea is used in this case.The text was updated successfully, but these errors were encountered: