Expose pixel to index function #503
Unanswered
nick-keller
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Hi @nick-keller,
thanks 💪
I think that's a valid request, right now we expose |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, congratulations on this great lib, very easy to work with.
What is the feature request?
I'd like the
Virtualizer
to expose a method that would allow me to pass a value in pixels, and get back aVirtualItem
.The story
I am the maintainer of react-datasheet-grid which uses this lib to virtualize a 2D grid. I need to convert user clicks to cell coordinates.
onClick
or other event listener on cells since the user might drag the mouse outside of the gridConclusion
I ended up re-writing the core logic of this library just for this, and even considering re-implementing virtualization myself... :/
I feel like this feature sould be trivial to implement since the logic is already there under the hood.
Let me know what you tink!
Beta Was this translation helpful? Give feedback.
All reactions