Horizontal scrolling from header (scrollheader)

Horizontal scrolling from header (scrollheader)

wesbwwesbw Posts: 1Questions: 1Answers: 0
edited May 2022 in Free community support

Hi everyone,
I have the same problem as below link(a question from July 2020).
https://datatables.net/forums/discussion/63080

"In the Horizontal Scroll example: https://datatables.net/examples/basic_init/scroll_x.html

If you try to scroll horizontally while your mouse is over the header, it does not scroll the table and headers horizontally.

Is there a way to make that work?"

I have horizontally scrollable table on mobile view but when I drag from header it doesn't scroll.
I'm using the latest version but couldn't find a solution yet. Playing on source code but didn't work yet.
Do you guys have any idea?

Answers

  • allanallan Posts: 61,740Questions: 1Answers: 10,111 Site admin

    At the moment no - sorry. That is indeed an outstanding issue that I'd like to resolve. It needs a listener on the header to make the body scroll - the trick is that you need to then disable the body scroll listener, and vice-versa.

    Allan

Sign In or Register to comment.