This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Make Handsontable work with custom scrollbar plugins #6255
Labels
You can continue the conversation there. Go to discussion →
Description
Good day!
I'm the author of the library OverlayScrollbars and recently a user has opened a issue (#139) where he asks whether he can use my library in combination with
Handsontable
. I've investigated into this, and came to the conclusion that it is almost possible without any additional features from your side.I've created a demo here, as you can see everything works pretty much okay except the headers arent scrolling properly. (maybe there are more things which arent't working properly, but I'm not aware of).
The only problem is, that I'm using the options
viewportColumnRenderingOffset
andviewportRowRenderingOffset
with a static number to make it work. Without these, the table won't render properly after you scroll, as you can see here. This is obviously super bad for performance since you aren't using any virtualization and are rendering all elements in the DOM.The reason for this is,
OverlayScrollbars
uses it's ownviewport
div, and thus thescroll
event is never fired by the originalviewport
div which is used byHandsontable
. In order to make it work, (with pretty much any scrollbar plugin, not just with mine) it would need additional feature(s):For my plugin just the first option would be enough, but other plugins which aren't using
native
scrolling would also need the second in order to pass their current generated scroll position.I thought it could look something like this:
I hope you understand my proposal. Maybe you even have a better idea or this is already somehow possible. Thanks for your answer!
The text was updated successfully, but these errors were encountered: